The-Swarm-Corporation / swarms-cloud

Deploy your autonomous agents to production grade environments with 99% Uptime Guarantee, Infinite Scalability, and self-healing.
https://discord.gg/GYbXvDGevY
MIT License
24 stars 9 forks source link

[BUG] #42

Closed evelynmitchell closed 4 months ago

evelynmitchell commented 5 months ago

Describe the bug Error running project in container


(base) kye@api:~/swarms-cloud$ docker run --gpus all -p 8000:8000 newcogvlm
/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_id" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
A new version of the following files was downloaded from https://huggingface.co/THUDM/cogvlm-chat-hf:
- configuration_cogvlm.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
A new version of the following files was downloaded from https://huggingface.co/THUDM/cogvlm-chat-hf:
- visual.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
A new version of the following files was downloaded from https://huggingface.co/THUDM/cogvlm-chat-hf:
- modeling_cogvlm.py
- visual.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
========Use torch type as:torch.bfloat16 with device:cuda========

Downloading shards: 100%|██████████| 8/8 [05:07<00:00, 38.50s/it]
Loading checkpoint shards: 100%|██████████| 8/8 [00:05<00:00,  1.42it/s]
INFO:     Started server process [1]
INFO:     Waiting for application startup.
ERROR:    Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 734, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/usr/lib/python3.10/contextlib.py", line 199, in __aenter__
    return await anext(self.gen)
TypeError: 'coroutine' object is not an async iterator

/usr/local/lib/python3.10/dist-packages/uvicorn/lifespan/on.py:91: RuntimeWarning: coroutine 'lifespan' was never awaited
  return
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
ERROR:    Application startup failed. Exiting.

the whole message i even set all gpus```

<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund

- We're using [Polar.sh](https://polar.sh/kyegomez) so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.

<a href="https://polar.sh/kyegomez/swarms-cloud/issues/42">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/kyegomez/swarms-cloud/issues/42/pledge.svg?darkmode=1">
  <img alt="Fund with Polar" src="https://polar.sh/api/github/kyegomez/swarms-cloud/issues/42/pledge.svg">
</picture>
</a>
<!-- POLAR PLEDGE BADGE END -->
evelynmitchell commented 4 months ago

Closing, this was a long time ago.