Instructions to use Den4ikAI/rugpt3-QA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Den4ikAI/rugpt3-QA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Den4ikAI/rugpt3-QA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Den4ikAI/rugpt3-QA") model = AutoModelForCausalLM.from_pretrained("Den4ikAI/rugpt3-QA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Den4ikAI/rugpt3-QA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Den4ikAI/rugpt3-QA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Den4ikAI/rugpt3-QA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Den4ikAI/rugpt3-QA
- SGLang
How to use Den4ikAI/rugpt3-QA 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 "Den4ikAI/rugpt3-QA" \ --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": "Den4ikAI/rugpt3-QA", "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 "Den4ikAI/rugpt3-QA" \ --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": "Den4ikAI/rugpt3-QA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Den4ikAI/rugpt3-QA with Docker Model Runner:
docker model run hf.co/Den4ikAI/rugpt3-QA
Commit History
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (febbbbf8049403e3e67853dd838da513c15f65a1) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>194679b
-
Librarian Bot: Update dataset YAML metadata for model (#1)
- Librarian Bot: Update dataset YAML metadata for model (372fffe8a95b7b05c7b230789b540d34b4a3cc3a) Co-authored-by: Librarian Bot (Bot) <librarian-bot@users.noreply.huggingface.co>5b83e1c
-
Upload 10 files
3144c6c -
Update README.md
226274a -
Update README.md
33f4f5e -
Upload pytorch_model.bin
e9667ee -
Upload added_tokens.json
336af4b -
Upload 9 files
a4fe959
-
Upload 8 files
5dbdff5 -
Upload 8 files
228ff90 -
Update README.md
61df441 -
Upload 8 files
87dc934
-
Update README.md
fa55902 -
Upload 8 files
e4d7ab2 -
Update README.md
db5c2a1 -
Update README.md
48b92bb -
Update README.md
660aef9 -
initial commit
9257ee4