| license: other | |
| license_name: deepseek | |
| license_link: LICENSE | |
| base_model: deepseek-ai/deepseek-coder-33b-instruct | |
| pipeline_tag: text-generation | |
| tags: | |
| - mlx | |
| library_name: mlx | |
| # mlx-community/deepseek-coder-33b-instruct | |
| This model [mlx-community/deepseek-coder-33b-instruct](https://huggingface.co/mlx-community/deepseek-coder-33b-instruct) was | |
| converted to MLX format from [deepseek-ai/deepseek-coder-33b-instruct](https://huggingface.co/deepseek-ai/deepseek-coder-33b-instruct) | |
| using mlx-lm version **0.25.2**. | |
| ## Use with mlx | |
| ```bash | |
| pip install mlx-lm | |
| ``` | |
| ```python | |
| from mlx_lm import load, generate | |
| model, tokenizer = load("mlx-community/deepseek-coder-33b-instruct") | |
| prompt = "hello" | |
| if tokenizer.chat_template is not None: | |
| messages = [{"role": "user", "content": prompt}] | |
| prompt = tokenizer.apply_chat_template( | |
| messages, add_generation_prompt=True | |
| ) | |
| response = generate(model, tokenizer, prompt=prompt, verbose=True) | |
| ``` | |