Text Generation
Transformers
PyTorch
Safetensors
Russian
gpt2
finance
code
text-generation-inference
Instructions to use AlexWortega/instruct_rugptlarge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlexWortega/instruct_rugptlarge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlexWortega/instruct_rugptlarge")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlexWortega/instruct_rugptlarge") model = AutoModelForCausalLM.from_pretrained("AlexWortega/instruct_rugptlarge", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlexWortega/instruct_rugptlarge with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlexWortega/instruct_rugptlarge" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlexWortega/instruct_rugptlarge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AlexWortega/instruct_rugptlarge
- SGLang
How to use AlexWortega/instruct_rugptlarge 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 "AlexWortega/instruct_rugptlarge" \ --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": "AlexWortega/instruct_rugptlarge", "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 "AlexWortega/instruct_rugptlarge" \ --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": "AlexWortega/instruct_rugptlarge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AlexWortega/instruct_rugptlarge with Docker Model Runner:
docker model run hf.co/AlexWortega/instruct_rugptlarge
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (3347377435953abc04c2c2c6b686b2e71a51276a) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>f544cf4
-
Update README.md
a60629b
-
Update README.md
fe74021
-
Update README.md
dcabfe0
-
Update README.md
ec565ff -
Upload model
787d54b -
Upload tokenizer
bc8b595 -
Upload tokenizer
9df4147 -
Upload model
5b13b49 -
Upload tokenizer
3ad5926
-
Upload model
755cb3a -
Upload tokenizer
e343a17 -
Upload model
6a949f4 -
Upload tokenizer
9f24219
-
Upload model
00b851e -
Upload tokenizer
731375b
-
Upload model
ea84487 -
Upload tokenizer
5a83589 -
Update README.md
104cd2d -
Update README.md
df8b62c -
Update README.md
b386725 -
Upload model
c535492 -
Upload tokenizer
be235f4 -
Upload tokenizer
c9afc44
-
Update README.md
5dee009
-
Update README.md
f6ccdd3
-
Update README.md
e7b57e8
-
Create README.md
77ffbd5 -
Upload model
ac136eb -
Upload tokenizer
46fbeca -
initial commit
f872766