File size: 546 Bytes
8566689 6691d9b 8566689 f82a40d 8566689 6691d9b f82a40d 6691d9b f82a40d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
---
language:
- ru
---
Квантизированная версия модели <a href="https://huggingface.co/ai-forever/ruGPT-3.5-13B">ruGPT-3.5</a>
``` python
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="pe4enov/ruGPT-3.5-13B-8bit")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ai-forever/ruGPT-3.5-13B")
model = AutoModelForCausalLM.from_pretrained("pe4enov/ruGPT-3.5-13B-8bit")
``` |