Instructions to use AlexWortega/instruct_rugptMedium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlexWortega/instruct_rugptMedium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlexWortega/instruct_rugptMedium")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlexWortega/instruct_rugptMedium") model = AutoModelForCausalLM.from_pretrained("AlexWortega/instruct_rugptMedium", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlexWortega/instruct_rugptMedium with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlexWortega/instruct_rugptMedium" # 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_rugptMedium", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AlexWortega/instruct_rugptMedium
- SGLang
How to use AlexWortega/instruct_rugptMedium 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_rugptMedium" \ --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_rugptMedium", "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_rugptMedium" \ --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_rugptMedium", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AlexWortega/instruct_rugptMedium with Docker Model Runner:
docker model run hf.co/AlexWortega/instruct_rugptMedium
Commit History
-
Update README.md
994a56c
-
Update README.md
edcf3b1 -
Update README.md
6afcd5d -
Upload model
a7d5287 -
Upload tokenizer
90d89a1 -
Upload model
e28853f -
Upload tokenizer
d9e505e -
Delete model.safetensors
1589d3e -
Update generation_config.json
ed245fb -
Update README.md
adec067 -
Upload tokenizer
9ba8915 -
Upload model
01f2052 -
Upload tokenizer
3bda508
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (a689767212ec402cb5340bcc6f6a9c651b91b12b) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>ba889ef -
Update README.md
68462ce -
Update README.md
338af45 -
Update README.md
8f9fe9b -
Upload model
6834c2e -
Upload tokenizer
52fed41
-
Update README.md
5ce2a2e -
Update README.md
009d193 -
Update README.md
a145b8c -
Upload model
740d2d7 -
Upload tokenizer
cfe91d1 -
Upload tokenizer
1ff991a -
Upload tokenizer
b145d6e -
Upload tokenizer
ea01343 -
Update README.md
04e1087 -
Update README.md
305bba4 -
Update README.md
40eb1dd
-
Update README.md
8253c7a -
Update README.md
b4fac78 -
Update README.md
9eed218 -
Update README.md
2df55e4
-
Update README.md
032b10a -
Create README.md
32f110d -
Upload model
82443e6 -
Upload tokenizer
3fbc88e -
Upload model
8689cf4 -
Upload tokenizer
36fdec8
-
Upload model
1b9b367 -
Upload tokenizer
cdc2dbb
-
Upload model
47cc425 -
Upload tokenizer
debfebe -
Upload tokenizer
c5c0180 -
Upload tokenizer
55bd342 -
initial commit
ecc8434