trust_remote_code=True?

#2
by flymonk - opened
MLX Community org

The repository for c4ai-command-r-v01-4bit contains custom code which must be executed to correctly load the model. You can inspect the repository content at c4ai-command-r-v01-4bit.
You can avoid this prompt in future by passing the argument trust_remote_code=True.

MLX Community org
β€’
edited Mar 14

Yes, you need to pass trust_remote_code. This is the same with original model.

https://huggingface.co/CohereForAI/c4ai-command-r-v01

MLX Community org

Yes, you need to pass trust_remote_code. This is the same with original model.

https://huggingface.co/CohereForAI/c4ai-command-r-v01

I found how to pass trust_remote_code to load method.
Thank you.

No way to pass trust_remote_code to mlx server (https://github.com/ml-explore/mlx-examples/blob/485180ae912b0a1b242bcdb8880680b072a60017/llms/mlx_lm/server.py).
Is changing code the only way?

MLX Community org

Yes, I believe you need to customize the code.

You can open an issue: https://github.com/ml-explore/mlx-examples/tree/main/llms

MLX Community org

I have submit a pr:

https://github.com/ml-explore/mlx-examples/pull/578.

Could u help to review?

MLX Community org

Sure πŸ‘πŸΎ

flymonk changed discussion status to closed
deleted
This comment has been hidden

Sign up or log in to comment