Text Generation
Transformers
Safetensors
PyTorch
Korean
English
llama
solar
mistral
solar-ko
text-generation-inference
Instructions to use beomi/Solar-Ko-Recovery-11B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beomi/Solar-Ko-Recovery-11B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="beomi/Solar-Ko-Recovery-11B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("beomi/Solar-Ko-Recovery-11B") model = AutoModelForCausalLM.from_pretrained("beomi/Solar-Ko-Recovery-11B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use beomi/Solar-Ko-Recovery-11B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "beomi/Solar-Ko-Recovery-11B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "beomi/Solar-Ko-Recovery-11B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/beomi/Solar-Ko-Recovery-11B
- SGLang
How to use beomi/Solar-Ko-Recovery-11B 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 "beomi/Solar-Ko-Recovery-11B" \ --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": "beomi/Solar-Ko-Recovery-11B", "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 "beomi/Solar-Ko-Recovery-11B" \ --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": "beomi/Solar-Ko-Recovery-11B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use beomi/Solar-Ko-Recovery-11B with Docker Model Runner:
docker model run hf.co/beomi/Solar-Ko-Recovery-11B
let special tokens be special
Browse files- tokenizer.json +45 -0
tokenizer.json
CHANGED
|
@@ -47,6 +47,51 @@
|
|
| 47 |
"rstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
],
|
| 52 |
"normalizer": {
|
|
|
|
| 47 |
"rstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"special": true
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"id": 63990,
|
| 53 |
+
"content": "<|sep|>",
|
| 54 |
+
"single_word": false,
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"normalized": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"id": 63991,
|
| 62 |
+
"content": "<|endoftext|>",
|
| 63 |
+
"single_word": false,
|
| 64 |
+
"lstrip": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"normalized": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"id": 63992,
|
| 71 |
+
"content": "<|acc|>",
|
| 72 |
+
"single_word": false,
|
| 73 |
+
"lstrip": false,
|
| 74 |
+
"rstrip": false,
|
| 75 |
+
"normalized": false,
|
| 76 |
+
"special": true
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"id": 63993,
|
| 80 |
+
"content": "<|rrn|>",
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"lstrip": false,
|
| 83 |
+
"rstrip": false,
|
| 84 |
+
"normalized": false,
|
| 85 |
+
"special": true
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"id": 63994,
|
| 89 |
+
"content": "<|tel|>",
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"lstrip": false,
|
| 92 |
+
"rstrip": false,
|
| 93 |
+
"normalized": false,
|
| 94 |
+
"special": true
|
| 95 |
}
|
| 96 |
],
|
| 97 |
"normalizer": {
|