Instructions to use minpeter/tiny-ko-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-base") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/tiny-ko-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/tiny-ko-base" # 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-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-base
- SGLang
How to use minpeter/tiny-ko-base 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-base" \ --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-base", "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-base" \ --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-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-base with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-base
Training in progress, step 1000
Browse files- config.json +3 -2
- model.safetensors +1 -1
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -12,12 +12,13 @@
|
|
| 12 |
"initializer_range": 0.041666666666666664,
|
| 13 |
"intermediate_size": 1536,
|
| 14 |
"is_llama_config": true,
|
| 15 |
-
"max_position_embeddings":
|
| 16 |
"mlp_bias": false,
|
| 17 |
"model_type": "llama",
|
| 18 |
"num_attention_heads": 9,
|
| 19 |
"num_hidden_layers": 30,
|
| 20 |
"num_key_value_heads": 3,
|
|
|
|
| 21 |
"pretraining_tp": 1,
|
| 22 |
"rms_norm_eps": 1e-05,
|
| 23 |
"rope_interleaved": false,
|
|
@@ -25,7 +26,7 @@
|
|
| 25 |
"rope_theta": 100000,
|
| 26 |
"tie_word_embeddings": true,
|
| 27 |
"torch_dtype": "float32",
|
| 28 |
-
"transformers_version": "4.
|
| 29 |
"use_cache": true,
|
| 30 |
"vocab_size": 128256
|
| 31 |
}
|
|
|
|
| 12 |
"initializer_range": 0.041666666666666664,
|
| 13 |
"intermediate_size": 1536,
|
| 14 |
"is_llama_config": true,
|
| 15 |
+
"max_position_embeddings": 2048,
|
| 16 |
"mlp_bias": false,
|
| 17 |
"model_type": "llama",
|
| 18 |
"num_attention_heads": 9,
|
| 19 |
"num_hidden_layers": 30,
|
| 20 |
"num_key_value_heads": 3,
|
| 21 |
+
"pad_token_id": 128001,
|
| 22 |
"pretraining_tp": 1,
|
| 23 |
"rms_norm_eps": 1e-05,
|
| 24 |
"rope_interleaved": false,
|
|
|
|
| 26 |
"rope_theta": 100000,
|
| 27 |
"tie_word_embeddings": true,
|
| 28 |
"torch_dtype": "float32",
|
| 29 |
+
"transformers_version": "4.52.4",
|
| 30 |
"use_cache": true,
|
| 31 |
"vocab_size": 128256
|
| 32 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 720346024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f17d5619a7378f35482ad7d5053f050d5b14eae6f958e2319116bf9ecfc347c9
|
| 3 |
size 720346024
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8877c8f6054fb7e4e14bb35368b7bb0ff88a9ebca9cd9310fb591d80d6a0cd9
|
| 3 |
+
size 5713
|