During the past weeks, I’ve succesfully autotrained two models based on facebook/convnextv2-tiny-1k-224. It worked well.
Today, I wanted to do the same thing again (with some additional folders for training). I fired up the space and ran into my first issue: there was some error and the space wouldn’t boot, so I (foolishly) just deleted it and created a new space (went to the facebook/convnextv2-tiny-1k-224 model page → “Train” dropdown → Finetune this model without code) I created the space with Docker / Autotrain and a T4 small.
During the autotrain setup assistant, I selected facebook/convnextv2-tiny-1k-224 for Image Classification, selected the zip folder (this time containing five subfolders instead of three as I did during the last time). I clicked on “Start Training”, confirmed the pop-up, waited for a couple of seconds, then I got a server error 500 message. This was in the logs:
INFO: 10.16.2.201:9635 - “POST /ui/create_project HTTP/1.1” 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File “/app/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py”, line 407, in run_asgi
result = await app( # type: ignore[func-returns-value]
File “/app/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py”, line 69, in call
return await self.app(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/fastapi/applications.py”, line 1054, in call
await super().call(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/applications.py”, line 123, in call
await self.middleware_stack(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 186, in call
raise exc
File “/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 164, in call
await self.app(scope, receive, _send)
File “/app/env/lib/python3.10/site-packages/starlette/middleware/sessions.py”, line 85, in call
await self.app(scope, receive, send_wrapper)
File “/app/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py”, line 64, in wrapped_app
raise exc
File “/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py”, line 53, in wrapped_app
await app(scope, receive, sender)
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 756, in call
await self.middleware_stack(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 776, in app
await route.handle(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 297, in handle
await self.app(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File “/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py”, line 64, in wrapped_app
raise exc
File “/app/env/lib/python3.10/site-packages/starlette/_exception_handler.py”, line 53, in wrapped_app
await app(scope, receive, sender)
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 72, in app
response = await func(request)
File “/app/env/lib/python3.10/site-packages/fastapi/routing.py”, line 278, in app
raw_response = await run_endpoint_function(
File “/app/env/lib/python3.10/site-packages/fastapi/routing.py”, line 191, in run_endpoint_function
return await dependant.call(**values)
File “/app/env/lib/python3.10/site-packages/autotrain/app/ui_routes.py”, line 331, in handle_form
raise NotImplementedError
NotImplementedError
Googling this error didn’t help. Autotrain is supposed to be codeless, so I think I should expect either an error message that would help me solve the problem, or there is a bug on HF’s side.
Any help is greatly appreciated!