Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to deploy via JCloud #75

Open
mvsoom opened this issue Aug 6, 2023 · 7 comments
Open

Trying to deploy via JCloud #75

mvsoom opened this issue Aug 6, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@mvsoom
Copy link

mvsoom commented Aug 6, 2023

I installed pip install open_gpt_torch today.
The opengpt serve stabilityai/stablelm-tuned-alpha-3b --precision fp16 --device_map balanced command fails because open_gpt/resources/flow.yml.jinja2 cannot be found.
I think it might be missing from the pip install from because of a missing MANIFEST.in file?

@mvsoom mvsoom added the bug Something isn't working label Aug 6, 2023
@mvsoom
Copy link
Author

mvsoom commented Aug 6, 2023

When I add the file manually (copy it from this repo), the command runs succesfully, but it returns this error:

(.venv) marnix@hp:~/ART/CAMERA/code$ opengpt deploy stabilityai/stablelm-tuned-alpha-3b --precision fp16 --device_map balanced --cloud jina --replicas 1
[08/06/23 21:41:16] INFO     Successfully validated flow config.     flow.py:158
                             Proceeding to flow deployment...                   
⠴ Deploying /tmp/tmpl65rkej9 • Submitting... ━━━━━━━━━━╺━━━━━━━━━ 1/2 • 0:00:00[jcloud                          ]  Successfully validated flow config. Proceeding to flow deployment...
[08/06/23 21:41:17] INFO     Successfully submitted flow with ID     flow.py:177
                             striking-elk-0cbc352599                            
⠧ Deploying /tmp/tmpl65rkej9 • Submitting... ━━━━━━━━━━╺━━━━━━━━━ 1/2 • 0:00:01[jcloud                          ]  Successfully submitted flow with ID [bold][blue]striking-elk-0cbc352599[/blue][/bold]
                    INFO     Check the Flow deployment logs:         flow.py:720
                             https://cloud.jina.ai/ !                           
⠧ Deploying /tmp/tmpl65rkej9 • Submitting... ━━━━━━━━━━╺━━━━━━━━━ 1/2 • 0:00:01[jcloud                          ]  Check the Flow deployment logs: [link=https://cloud.jina.ai/user/flows?action=detail&id=striking-elk-0cbc352599&tab=logs]https://cloud.jina.ai/[/link] !
**Unexpected phase: Failed reached at Starting for Flow ID striking-elk-0cbc352599**

Any idea how to solve this? I can see the Failed Flow in https://cloud.jina.ai/user/flows, but the Logs tab is empty.
I tried all the variations I could think of, including different resource tiers (G2, G3) and models and quantization.

open_gpt.__version__ == '0.0.13' (+ manually copied open_gpt/resources/flow.yml.jinja2 file from this repo)
jina.__version__ == '3.20.0'
jcloud.__version__ = '0.2.16'
Python 3.9.5
Ubuntu 20.04.6 LTS

I'm currently on the free plan.

@mvsoom mvsoom changed the title Missing MANIFEST.in file Trying to deploy via JCloud Aug 6, 2023
@mvsoom
Copy link
Author

mvsoom commented Aug 6, 2023

I can confirm the same error (Unexpected phase: Failed reached at Starting for Flow ID) happens after doing a fresh install using

git clone https://github.com/jina-ai/opengpt.git
pip install -e .

@jemmyshin
Copy link
Member

jemmyshin commented Aug 8, 2023

Thanks for feedback, how long did you get this error after you executed the command opengpt serve?

@mvsoom
Copy link
Author

mvsoom commented Aug 9, 2023

About 10 minutes for every combination that I tried.

@jemmyshin
Copy link
Member

This might be some issues in JCloud since it takes too much time to convert the JCloud YAML file to k8s YAML. Unfortunately, there isn't too much we can do at this time, but I will keep you updated once we have some progress here. Sorry for the inconvenient. Will it be possible to deploy the model on your local machine?

@mvsoom
Copy link
Author

mvsoom commented Aug 15, 2023

Unfortunately not. Is it possible to upload and use it to JCloud without docker, i.e. with source code format?

@mvsoom
Copy link
Author

mvsoom commented Aug 26, 2023

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants