File size: 565 Bytes
c8e5b77 f6d47f3 c8e5b77 b5c18a1 c8e5b77 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
---
license: apache-2.0
datasets:
- Minami-su/test-7B-00
---
# How to use
微调基于Qwen2.5-7B-Instruct
```python
# Use a pipeline as a high-level helper
from transformers import pipeline
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="Minami-su/test-7B-00")
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Minami-su/test-7B-00")
model = AutoModelForCausalLM.from_pretrained("Minami-su/test-7B-00")
``` |