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

Different LLM instead of the default one #18

Open
lakpriya1s opened this issue Oct 7, 2024 · 1 comment
Open

Different LLM instead of the default one #18

lakpriya1s opened this issue Oct 7, 2024 · 1 comment

Comments

@lakpriya1s
Copy link

const pipe = await pipeline('text-generation', 'onnx-community/Llama-3.2-1B-Instruct-q4f16');

How can I use a different LLM instead of the default one? I'm getting below error!

image

I actually need to run the Llama 3.2 completely locally on an iPhone. Could you help me to do it?

@hans00
Copy link
Owner

hans00 commented Oct 11, 2024

onnx-community/Llama-3.2-1B-Instruct-q4f16 does not provide onnx/model.onnx file.
You should specify the model file name model_q4f16.onnx using model_file_name

const pipe = await pipeline(
  'text-generation',
  'onnx-community/Llama-3.2-1B-Instruct-q4f16',
  { model_file_name: 'model_q4f16.onnx' }
);

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

2 participants