Instructions to use minpeter/tiny-ko-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-random with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-random")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-random") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-random") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use minpeter/tiny-ko-random with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/tiny-ko-random" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/tiny-ko-random", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-random
- SGLang
How to use minpeter/tiny-ko-random 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 "minpeter/tiny-ko-random" \ --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": "minpeter/tiny-ko-random", "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 "minpeter/tiny-ko-random" \ --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": "minpeter/tiny-ko-random", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-random with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-random
Upload tokenizer
Browse files- tokenizer.json +0 -0
- tokenizer_config.json +12 -12
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -26,39 +26,39 @@
|
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
-
"
|
| 30 |
"content": "<tool_call>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
| 34 |
"single_word": false,
|
| 35 |
-
"special":
|
| 36 |
},
|
| 37 |
-
"
|
| 38 |
"content": "</tool_call>",
|
| 39 |
"lstrip": false,
|
| 40 |
"normalized": false,
|
| 41 |
"rstrip": false,
|
| 42 |
"single_word": false,
|
| 43 |
-
"special":
|
| 44 |
},
|
| 45 |
-
"
|
| 46 |
"content": "<think>",
|
| 47 |
"lstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"rstrip": false,
|
| 50 |
"single_word": false,
|
| 51 |
-
"special":
|
| 52 |
},
|
| 53 |
-
"
|
| 54 |
"content": "</think>",
|
| 55 |
"lstrip": false,
|
| 56 |
"normalized": false,
|
| 57 |
"rstrip": false,
|
| 58 |
"single_word": false,
|
| 59 |
-
"special":
|
| 60 |
},
|
| 61 |
-
"
|
| 62 |
"content": "<|unused_special_token_0|>",
|
| 63 |
"lstrip": false,
|
| 64 |
"normalized": false,
|
|
@@ -66,7 +66,7 @@
|
|
| 66 |
"single_word": false,
|
| 67 |
"special": true
|
| 68 |
},
|
| 69 |
-
"
|
| 70 |
"content": "<|unused_special_token_1|>",
|
| 71 |
"lstrip": false,
|
| 72 |
"normalized": false,
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
"single_word": false,
|
| 75 |
"special": true
|
| 76 |
},
|
| 77 |
-
"
|
| 78 |
"content": "<|unused_special_token_2|>",
|
| 79 |
"lstrip": false,
|
| 80 |
"normalized": false,
|
|
@@ -82,7 +82,7 @@
|
|
| 82 |
"single_word": false,
|
| 83 |
"special": true
|
| 84 |
},
|
| 85 |
-
"
|
| 86 |
"content": "<|unused_special_token_3|>",
|
| 87 |
"lstrip": false,
|
| 88 |
"normalized": false,
|
|
|
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
+
"3": {
|
| 30 |
"content": "<tool_call>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
| 34 |
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
},
|
| 37 |
+
"4": {
|
| 38 |
"content": "</tool_call>",
|
| 39 |
"lstrip": false,
|
| 40 |
"normalized": false,
|
| 41 |
"rstrip": false,
|
| 42 |
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
},
|
| 45 |
+
"5": {
|
| 46 |
"content": "<think>",
|
| 47 |
"lstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"rstrip": false,
|
| 50 |
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
},
|
| 53 |
+
"6": {
|
| 54 |
"content": "</think>",
|
| 55 |
"lstrip": false,
|
| 56 |
"normalized": false,
|
| 57 |
"rstrip": false,
|
| 58 |
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
},
|
| 61 |
+
"7": {
|
| 62 |
"content": "<|unused_special_token_0|>",
|
| 63 |
"lstrip": false,
|
| 64 |
"normalized": false,
|
|
|
|
| 66 |
"single_word": false,
|
| 67 |
"special": true
|
| 68 |
},
|
| 69 |
+
"8": {
|
| 70 |
"content": "<|unused_special_token_1|>",
|
| 71 |
"lstrip": false,
|
| 72 |
"normalized": false,
|
|
|
|
| 74 |
"single_word": false,
|
| 75 |
"special": true
|
| 76 |
},
|
| 77 |
+
"9": {
|
| 78 |
"content": "<|unused_special_token_2|>",
|
| 79 |
"lstrip": false,
|
| 80 |
"normalized": false,
|
|
|
|
| 82 |
"single_word": false,
|
| 83 |
"special": true
|
| 84 |
},
|
| 85 |
+
"10": {
|
| 86 |
"content": "<|unused_special_token_3|>",
|
| 87 |
"lstrip": false,
|
| 88 |
"normalized": false,
|