TheBlueObserver's picture
0736a401cca2f4835d8d9a319ea6970c430f3e0085fd9f58bc6b417f066922f9
bda60ea verified
|
raw
history blame
1.09 kB
---
base_model: FreedomIntelligence/HuatuoGPT-o1-7B
datasets:
- FreedomIntelligence/medical-o1-reasoning-SFT
- FreedomIntelligence/medical-o1-verifiable-problem
language:
- en
- zh
license: apache-2.0
pipeline_tag: text-generation
tags:
- medical
- mlx
---
# TheBlueObserver/HuatuoGPT-o1-7B-MLX-196c8
The Model [TheBlueObserver/HuatuoGPT-o1-7B-MLX-196c8](https://huggingface.co/TheBlueObserver/HuatuoGPT-o1-7B-MLX-196c8) was
converted to MLX format from [FreedomIntelligence/HuatuoGPT-o1-7B](https://huggingface.co/FreedomIntelligence/HuatuoGPT-o1-7B)
using mlx-lm version **0.20.2**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("TheBlueObserver/HuatuoGPT-o1-7B-MLX-196c8")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
```