Instructions to use AlanRobotics/opt-ru with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlanRobotics/opt-ru with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlanRobotics/opt-ru")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlanRobotics/opt-ru") model = AutoModelForCausalLM.from_pretrained("AlanRobotics/opt-ru", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlanRobotics/opt-ru with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlanRobotics/opt-ru" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlanRobotics/opt-ru", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AlanRobotics/opt-ru
- SGLang
How to use AlanRobotics/opt-ru 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 "AlanRobotics/opt-ru" \ --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": "AlanRobotics/opt-ru", "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 "AlanRobotics/opt-ru" \ --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": "AlanRobotics/opt-ru", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AlanRobotics/opt-ru with Docker Model Runner:
docker model run hf.co/AlanRobotics/opt-ru
Commit History
-
Training in progress, step 4200
172631f -
Training in progress, step 4000
04e7fc9 -
Training in progress, step 3900
4b9f438 -
Training in progress, step 3700
40f1f15 -
Training in progress, step 3500
7e7ed89 -
Training in progress, step 3400
baddd45 -
Training in progress, step 3300
71c93a3 -
Training in progress, step 3200
deda448 -
Training in progress, step 3000
acdafe8 -
Training in progress, step 2800
eddeeb7 -
Training in progress, step 2600
5dc7948 -
Training in progress, step 2500
3aac24a -
Training in progress, step 2300
43e67bd -
Training in progress, step 2100
66044a0 -
Training in progress, step 2000
00c45b3 -
Training in progress, step 1800
3655ef3 -
Training in progress, step 1700
5ea775d -
Training in progress, step 1500
a90e6c9 -
Training in progress, step 1300
ec238b5 -
Training in progress, step 1200
80667ed -
Training in progress, step 1100
875bbcb -
Training in progress, step 900
614de81 -
Training in progress, step 800
74cd9d2 -
Training in progress, step 700
caac1ef -
Training in progress, step 600
40031a2 -
Training in progress, step 400
94544ed -
Training in progress, step 300
2358e93 -
Training in progress, step 200
490769b -
Training in progress, step 100
c2660fd
-
Training in progress, step 10000
7ff6f56 -
Training in progress, step 5000
f7d957c
-
initial commit
e788215