Upload folder using huggingface_hub (#1)

- c79308ee32b474a60535728b2fb8faf079a7b45fcbbc63acd3038099c77e5afc (395920d2ee58bd2a6cccdafcffebebc12eb33cbd)
- 84cfe5d9b40aa3ebde3284b31c0a45ccb986756d45f7961ca3669e257656373d (5afb71f7bacec18a5c45b4b72fbb3b08f75fde62)
This commit is contained in:
ai-modelscope
2024-12-19 18:25:40 +08:00
parent 47add2ff04
commit 0405b8b4cb
10 changed files with 2460 additions and 63 deletions

View File

@@ -1,47 +1,61 @@
---
license: Apache License 2.0
#model-type:
##如 gpt、phi、llama、chatglm、baichuan 等
#- gpt
#domain:
##如 nlp、cv、audio、multi-modal
#- nlp
#language:
##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa
#- cn
#metrics:
##如 CIDEr、Blue、ROUGE 等
#- CIDEr
#tags:
##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他
#- pretrained
#tools:
##如 vllm、fastchat、llamacpp、AdaSeq 等
#- vllm
language:
- en
license: llama3
tags:
- Llama-3
- instruct
- finetune
- chatml
- gpt4
- synthetic data
- distillation
- function calling
- json mode
- axolotl
- roleplaying
- chat
- mlx
base_model: NousResearch/Hermes-3-Llama-3.2-3B
widget:
- example_title: Hermes 3
messages:
- role: system
content: You are a sentient, superintelligent artificial general intelligence,
here to teach and assist me.
- role: user
content: Write a short story about Goku discovering kirby has teamed up with Majin
Buu to destroy the world.
library_name: transformers
model-index:
- name: Hermes-3-Llama-3.1-405B
results: []
---
### 当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重,可浏览“模型文件”页面获取。
#### 您可以通过如下git clone命令或者ModelScope SDK来下载模型
SDK下载
# mlx-community/Hermes-3-Llama-3.2-3B-bf16
The Model [mlx-community/Hermes-3-Llama-3.2-3B-bf16](https://huggingface.co/mlx-community/Hermes-3-Llama-3.2-3B-bf16) was
converted to MLX format from [NousResearch/Hermes-3-Llama-3.2-3B](https://huggingface.co/NousResearch/Hermes-3-Llama-3.2-3B)
using mlx-lm version **0.20.3**.
## Use with mlx
```bash
#安装ModelScope
pip install modelscope
```
```python
#SDK模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('mlx-community/Hermes-3-Llama-3.2-3B-bf16')
```
Git下载
```
#Git模型下载
git clone https://www.modelscope.cn/mlx-community/Hermes-3-Llama-3.2-3B-bf16.git
pip install mlx-lm
```
<p style="color: lightgrey;">如果您是本模型的贡献者,我们邀请您根据<a href="https://modelscope.cn/docs/ModelScope%E6%A8%A1%E5%9E%8B%E6%8E%A5%E5%85%A5%E6%B5%81%E7%A8%8B%E6%A6%82%E8%A7%88" style="color: lightgrey; text-decoration: underline;">模型贡献文档</a>,及时完善模型卡片内容。</p>
```python
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Hermes-3-Llama-3.2-3B-bf16")
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)
```