Instructions to use Rakshinrules/Raksh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rakshinrules/Raksh with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Rakshinrules/Raksh")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Rakshinrules/Raksh", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Rakshinrules/Raksh with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rakshinrules/Raksh" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rakshinrules/Raksh", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Rakshinrules/Raksh
- SGLang
How to use Rakshinrules/Raksh 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 "Rakshinrules/Raksh" \ --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": "Rakshinrules/Raksh", "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 "Rakshinrules/Raksh" \ --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": "Rakshinrules/Raksh", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Rakshinrules/Raksh with Docker Model Runner:
docker model run hf.co/Rakshinrules/Raksh
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Название модели: Rakshinrules/Raksh
|
| 2 |
|
| 3 |
## Описание
|
|
@@ -12,4 +32,4 @@ from transformers import pipeline
|
|
| 12 |
|
| 13 |
generator = pipeline("text-generation", model="Rakshinrules/Raksh")
|
| 14 |
response = generator("Пример запроса", max_length=100, num_return_sequences=1)
|
| 15 |
-
print(response)
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- oscar-corpus/oscar
|
| 5 |
+
language:
|
| 6 |
+
- ru
|
| 7 |
+
- en
|
| 8 |
+
metrics:
|
| 9 |
+
- rouge
|
| 10 |
+
- bleu
|
| 11 |
+
base_model:
|
| 12 |
+
- EleutherAI/gpt-neo-2.7B
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
library_name: transformers
|
| 15 |
+
tags:
|
| 16 |
+
- russian
|
| 17 |
+
- text-generation
|
| 18 |
+
- chatbot
|
| 19 |
+
- nlp
|
| 20 |
+
---
|
| 21 |
# Название модели: Rakshinrules/Raksh
|
| 22 |
|
| 23 |
## Описание
|
|
|
|
| 32 |
|
| 33 |
generator = pipeline("text-generation", model="Rakshinrules/Raksh")
|
| 34 |
response = generator("Пример запроса", max_length=100, num_return_sequences=1)
|
| 35 |
+
print(response)
|