初始化项目,由ModelHub XC社区提供模型

Model: mrfakename/Apriel-5B-Instruct-llamafied
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-23 00:30:13 +08:00
commit 02d93c5d62
11 changed files with 8443 additions and 0 deletions

33
README.md Normal file
View File

@@ -0,0 +1,33 @@
---
license: mit
base_model:
- ServiceNow-AI/Apriel-5B-Instruct
pipeline_tag: text-generation
library_name: transformers
---
* **Apriel 5B Instruct (Llamafied)**
* [Apriel 5B Base (Llamafied)](https://huggingface.co/mrfakename/Apriel-5B-Base-llamafied)
# Apriel 5B Instruct (Llamafied)
An approximate conversion of [Apriel 5B Instruct](https://huggingface.co/ServiceNow-AI/Apriel-5B-Instruct) to the Llama format.
* No `trust_remote_code` required
* Compatible w/ popular fine-tuning frameworks
* Easier to run
Usage:
```python
from transformers import pipeline
import torch
device = 'cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu'
pipe = pipeline('text-generation', model='mrfakename/Apriel-5B-Instruct-llamafied', device=device)
print(pipe(pipe.tokenizer.apply_chat_template([{'role': 'user', 'content': 'Hello'}], tokenize=False, add_generation_prompt=True))[0]['generated_text'])
```
License: MIT (same as the original Apriel 5B model)