Downloads · 30 days
21
0% of all-time downloads
gurgutan/ruGPT-13B-4bit
ruGPT-13B-4bit is a text generation model from gurgutan. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This files are GPTQ model files for sberbank ruGPT-3.5-13B model.
Downloads · 30 days
21
0% of all-time downloads
All-time downloads
5.4K
Public
Repo size
15 GB
Likes
8
Public
Click a slice to open those files.
.safetensors7.8 GB · 52%
From the Hugging Face model README
This files are GPTQ model files for sberbank ruGPT-3.5-13B model.
Model was quantized to 4-bit with AutoGPTQ library
First make sure you have AutoGPTQ installed:
GITHUB_ACTIONS=true pip install auto-gptq
Then try the following example code:
from transformers import AutoTokenizer, TextGenerationPipeline
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
repo_name = "gurgutan/ruGPT-13B-4bit"
# load tokenizer from Hugging Face Hub
tokenizer = AutoTokenizer.from_pretrained(repo_name, use_fast=True)
# download quantized model from Hugging Face Hub and load to the first GPU
model = AutoGPTQForCausalLM.from_quantized(repo_name, device="cuda:0", use_safetensors=True, use_triton=False)
# inference with model.generate
request = "Буря мглою небо кроет"
print(tokenizer.decode(model.generate(**tokenizer(request, return_tensors="pt").to(model.device))[0]))
# or you can also use pipeline
pipeline = TextGenerationPipeline(model=model, tokenizer=tokenizer)
print(pipeline(request)[0]["generated_text"])
Language model for Russian. Model has 13B parameters as you can guess from it's name. This is our biggest model so far and it was used for trainig GigaChat (read more about it in the article).