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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Den4ikAI/rugpt3-QA") model = AutoModelForCausalLM.from_pretrained("Den4ikAI/rugpt3-QA") - 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
Librarian Bot: Update dataset YAML metadata for model
#1
by librarian-bot - opened
README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
| 3 |
widget:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
example_title: "test"
|
| 7 |
-
|
| 8 |
---
|
| 9 |
Здесь будут выкладываться чекпоинты модели rugpt3-medium обученной на данных с otvet.mail.ru
|
| 10 |
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
datasets: Den4ikAI/mailruQA-big
|
| 4 |
widget:
|
| 5 |
+
- text: "Q: Что такое любовь?\n A:"
|
| 6 |
+
example_title: test
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
Здесь будут выкладываться чекпоинты модели rugpt3-medium обученной на данных с otvet.mail.ru
|
| 9 |
|