Instructions to use ai-forever/mGPT-1.3B-ossetian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai-forever/mGPT-1.3B-ossetian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ai-forever/mGPT-1.3B-ossetian")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ai-forever/mGPT-1.3B-ossetian") model = AutoModelForCausalLM.from_pretrained("ai-forever/mGPT-1.3B-ossetian") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ai-forever/mGPT-1.3B-ossetian with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ai-forever/mGPT-1.3B-ossetian" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ai-forever/mGPT-1.3B-ossetian", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ai-forever/mGPT-1.3B-ossetian
- SGLang
How to use ai-forever/mGPT-1.3B-ossetian with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ai-forever/mGPT-1.3B-ossetian" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ai-forever/mGPT-1.3B-ossetian", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ai-forever/mGPT-1.3B-ossetian" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ai-forever/mGPT-1.3B-ossetian", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ai-forever/mGPT-1.3B-ossetian with Docker Model Runner:
docker model run hf.co/ai-forever/mGPT-1.3B-ossetian
๐ Ossetian mGPT 1.3B
Language model for Ossetian. Model has 1.3B parameters as you can guess from it's name.
Ossetian belongs to Indo-European language family. It's a very expressive language with approximately 0.5 million speakers. Here are some facts about it:
- It is spoken in the Caucasus region, predominantly in South and North Ossetia.
- Ossetian is descended from the ancient Scythian language.
- It has two main dialects: Iron and Digor.
Technical details
It's one of the models derived from the base mGPT-XL (1.3B) model (see the list below) which was originally trained on the 61 languages from 25 language families using Wikipedia and C4 corpus.
We've found additional data for 23 languages most of which are considered as minor and decided to further tune the base model. Ossetian mGPT 1.3B was trained for another 200 steps with batch_size=4 and context window of 2048 tokens on 1 A100.
Final perplexity for this model on validation is 18.7.
Chart of the training loss and perplexity:
Other mGPT-1.3B models
- ๐ฆ๐ฒ mGPT-1.3B Armenian
- ๐ฆ๐ฟ mGPT-1.3B Azerbaijan
- ๐ฏ mGPT-1.3B Bashkir
- ๐ง๐พ mGPT-1.3B Belorussian
- ๐ง๐ฌ mGPT-1.3B Bulgarian
- ๐ mGPT-1.3B Buryat
- ๐ณ mGPT-1.3B Chuvash
- ๐ฌ๐ช mGPT-1.3B Georgian
- ๐ธ mGPT-1.3B Kalmyk
- ๐ฐ๐ฟ mGPT-1.3B Kazakh
- ๐ฐ๐ฌ mGPT-1.3B Kirgiz
- ๐ป mGPT-1.3B Mari
- ๐ฒ๐ณ mGPT-1.3B Mongol
- ๐ฎ๐ท mGPT-1.3B Persian
- ๐ท๐ด mGPT-1.3B Romanian
- ๐น๐ฏ mGPT-1.3B Tajik
- โ mGPT-1.3B Tatar
- ๐น๐ฒ mGPT-1.3B Turkmen
- ๐ mGPT-1.3B Tuvan
- ๐บ๐ฆ mGPT-1.3B Ukranian
- ๐บ๐ฟ mGPT-1.3B Uzbek
- ๐ mGPT-1.3B Yakut
Feedback
If you'll found a bug of have additional data to train model on your language โ please, give us feedback.
Model will be improved over time. Stay tuned!
- Downloads last month
- 30
