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

Model service not running on MAC applehv and linux #130

Closed
lstocchi opened this issue Jan 25, 2024 · 5 comments
Closed

Model service not running on MAC applehv and linux #130

lstocchi opened this issue Jan 25, 2024 · 5 comments
Assignees
Labels
Milestone

Comments

@lstocchi
Copy link
Contributor

lstocchi commented Jan 25, 2024

Philippe discovered that the model service cannot be actually run after creation with #100 on MAC applehv.

Error

Traceback (most recent call last):
  File "/locallm/chat_service.py", line 9, in <module>
    llm = Llama(os.getenv('MODEL_PATH',
  File "/opt/app-root/lib64/python3.9/site-packages/llama_cpp/llama.py", line 276, in __init__
    raise ValueError(f"Model path does not exist: {model_path}")
ValueError: Model path does not exist: /llama-2-7b-chat.Q5_K_S.gguf

Also broken on Linux

@lstocchi
Copy link
Contributor Author

Start investigating, if someone has any info pls share here

@lstocchi lstocchi self-assigned this Jan 25, 2024
@jeffmaury
Copy link
Contributor

I would guess that's because volume mounts is not implemented on applehv

@lstocchi
Copy link
Contributor Author

But if i execute it from the cli it works

@lstocchi
Copy link
Contributor Author

Ok so i'm able to replicate the error we face using the CLI if i forget to add the Z flag to the command
Working command

podman container create -v localSource:/model.gguf:Z --env MODEL_PATH=/model.gguf modelimage

Non-working command -> same result as running with Desktop

podman container create -v localSource:/model.gguf --env MODEL_PATH=/model.gguf modelimage

lstocchi added a commit to lstocchi/studio-extension that referenced this issue Jan 25, 2024
@jeffmaury jeffmaury assigned jeffmaury and unassigned lstocchi Mar 7, 2024
@jeffmaury jeffmaury moved this to 🚧 In Progress in Podman Desktop Planning Mar 7, 2024
jeffmaury added a commit to jeffmaury/ai-lab that referenced this issue Mar 7, 2024
@jeffmaury jeffmaury changed the title Model service not running on MAC applehv Model service not running on MAC applehv/Linux Mar 8, 2024
@slemeur slemeur changed the title Model service not running on MAC applehv/Linux Model service not running on MAC applehv and linux Mar 8, 2024
@slemeur slemeur modified the milestones: 1.0, 0.3.0 Mar 8, 2024
@lstocchi
Copy link
Contributor Author

closing as #231 has been merged and the model mounting works on applehv/linux

@github-project-automation github-project-automation bot moved this from 🚧 In Progress to ✔️ Done in Podman Desktop Planning Mar 13, 2024
mhdawson pushed a commit to mhdawson/podman-desktop-extension-ai-lab that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants