|
--- |
|
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") |
|
``` |