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- special_tokens_map.json +3 -3
- tokenizer.json +0 -0
- tokenizer_config.json +9 -9
special_tokens_map.json
CHANGED
|
@@ -2,21 +2,21 @@
|
|
| 2 |
"eos_token": {
|
| 3 |
"content": "<|endoftext|>",
|
| 4 |
"lstrip": false,
|
| 5 |
-
"normalized":
|
| 6 |
"rstrip": false,
|
| 7 |
"single_word": false
|
| 8 |
},
|
| 9 |
"pad_token": {
|
| 10 |
"content": "<|endoftext|>",
|
| 11 |
"lstrip": false,
|
| 12 |
-
"normalized":
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
"unk_token": {
|
| 17 |
"content": "<|endoftext|>",
|
| 18 |
"lstrip": false,
|
| 19 |
-
"normalized":
|
| 20 |
"rstrip": false,
|
| 21 |
"single_word": false
|
| 22 |
}
|
|
|
|
| 2 |
"eos_token": {
|
| 3 |
"content": "<|endoftext|>",
|
| 4 |
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
"rstrip": false,
|
| 7 |
"single_word": false
|
| 8 |
},
|
| 9 |
"pad_token": {
|
| 10 |
"content": "<|endoftext|>",
|
| 11 |
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
"unk_token": {
|
| 17 |
"content": "<|endoftext|>",
|
| 18 |
"lstrip": false,
|
| 19 |
+
"normalized": true,
|
| 20 |
"rstrip": false,
|
| 21 |
"single_word": false
|
| 22 |
}
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -2,29 +2,29 @@
|
|
| 2 |
"add_bos_token": false,
|
| 3 |
"add_prefix_space": false,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
-
"
|
| 6 |
"content": "<|endoftext|>",
|
| 7 |
"lstrip": false,
|
| 8 |
-
"normalized":
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
-
"
|
| 14 |
"content": "<|im_start|>",
|
| 15 |
"lstrip": false,
|
| 16 |
-
"normalized":
|
| 17 |
"rstrip": false,
|
| 18 |
"single_word": false,
|
| 19 |
-
"special":
|
| 20 |
},
|
| 21 |
-
"
|
| 22 |
"content": "<|im_end|>",
|
| 23 |
"lstrip": false,
|
| 24 |
-
"normalized":
|
| 25 |
"rstrip": false,
|
| 26 |
"single_word": false,
|
| 27 |
-
"special":
|
| 28 |
},
|
| 29 |
"31992": {
|
| 30 |
"content": "<tool_call>",
|
|
@@ -95,7 +95,7 @@
|
|
| 95 |
"clean_up_tokenization_spaces": false,
|
| 96 |
"eos_token": "<|endoftext|>",
|
| 97 |
"extra_special_tokens": {},
|
| 98 |
-
"model_max_length":
|
| 99 |
"pad_token": "<|endoftext|>",
|
| 100 |
"split_special_tokens": false,
|
| 101 |
"tokenizer_class": "PreTrainedTokenizerFast",
|
|
|
|
| 2 |
"add_bos_token": false,
|
| 3 |
"add_prefix_space": false,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
+
"31989": {
|
| 6 |
"content": "<|endoftext|>",
|
| 7 |
"lstrip": false,
|
| 8 |
+
"normalized": true,
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
+
"31990": {
|
| 14 |
"content": "<|im_start|>",
|
| 15 |
"lstrip": false,
|
| 16 |
+
"normalized": true,
|
| 17 |
"rstrip": false,
|
| 18 |
"single_word": false,
|
| 19 |
+
"special": false
|
| 20 |
},
|
| 21 |
+
"31991": {
|
| 22 |
"content": "<|im_end|>",
|
| 23 |
"lstrip": false,
|
| 24 |
+
"normalized": true,
|
| 25 |
"rstrip": false,
|
| 26 |
"single_word": false,
|
| 27 |
+
"special": false
|
| 28 |
},
|
| 29 |
"31992": {
|
| 30 |
"content": "<tool_call>",
|
|
|
|
| 95 |
"clean_up_tokenization_spaces": false,
|
| 96 |
"eos_token": "<|endoftext|>",
|
| 97 |
"extra_special_tokens": {},
|
| 98 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 99 |
"pad_token": "<|endoftext|>",
|
| 100 |
"split_special_tokens": false,
|
| 101 |
"tokenizer_class": "PreTrainedTokenizerFast",
|