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

HF_PRETRAINED_MODEL not working properly #692

Open
axel7083 opened this issue Jul 24, 2024 · 1 comment
Open

HF_PRETRAINED_MODEL not working properly #692

axel7083 opened this issue Jul 24, 2024 · 1 comment

Comments

@axel7083
Copy link
Contributor

axel7083 commented Jul 24, 2024

Description

am not sure to perfectly understand the following

--chat_format ${CHAT_FORMAT:=llama-2} \
${PRETRAINED_MODEL_PATH:=}
${HF_PRETRAINED_MODEL:%=--hf_pretrained_model_name_or_path %} \

But using the command

podman run -v /home/axel7083/Documents/models/:/models:Z -e MODEL_PATH=/models/functionary-small-v2.5.Q4_0.gguf -e HF_PRETRAINED_MODEL=meetkai/functionary-small-v2.5-GGUF -e CHAT_FORMAT=functionary-v2 -p 8000:8000 -e PORT=8000 ghcr.io/containers/llamacpp_python:latest

does not provide the proper value to --hf_pretrained_model_name_or_path.

Expected

The tokenizer_config.json should be downloaded at startup

image

Current

With the current, it does not download it

image

@axel7083
Copy link
Contributor Author

cc @Gregory-Pereira I think a \ is missing on the following line

but when adding it we got the following error

./run.sh: line 12: HF_PRETRAINED_MODEL: %=--hf_pretrained_model_name_or_path %: syntax error: operand expected (error token is "%=--hf_pretrained_model_name_or_path %")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant