How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Defetya/ru_adapted_phi-2", trust_remote_code=True)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Defetya/ru_adapted_phi-2", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("Defetya/ru_adapted_phi-2", trust_remote_code=True)
Quick Links

Ru-adapted phi-2 (change the tokenizer and the embeddings layer like here: https://russiansuperglue.com/login/submit_info/2899). Unfortunately, they left no code behind so I can only hope my code's correct.

Model hasn't been trained yet. It will undergo full parameter second-stage pre-training.

Downloads last month
4
Safetensors
Model size
3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support