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
Commit History
-
Training in progress, step 166000
Verified signaturee6d05ea -
Training in progress, step 165000
Verified signature0574a0f -
Training in progress, step 164000
Verified signatureb8c632a -
Training in progress, step 163000
Verified signatureeb574a5 -
Training in progress, step 162000
Verified signature766f1b6 -
Training in progress, step 161000
Verified signatureefe283b -
Training in progress, step 160000
Verified signatureaae624b -
Training in progress, step 159000
Verified signature7df200e
-
Training in progress, step 158000
Verified signature308980b -
Training in progress, step 157000
Verified signatureb0e884b -
Training in progress, step 156000
Verified signaturec78acef -
Training in progress, step 155000
Verified signaturee858b4e -
Training in progress, step 154000
Verified signature1898751 -
Training in progress, step 153000
Verified signature1dd3685 -
Training in progress, step 152000
Verified signature6ac9a19 -
Training in progress, step 151000
Verified signature36f3120 -
Training in progress, step 150000
Verified signaturef91608e -
Training in progress, step 149000
Verified signature2c7d5d8 -
Training in progress, step 147000
Verified signatureaab5478 -
Training in progress, step 146000
Verified signature9ee6383 -
Training in progress, step 145000
Verified signature81b4ae6 -
Training in progress, step 144000
Verified signatureae04406 -
Training in progress, step 143000
Verified signature244da0f -
Training in progress, step 142000
Verified signature8b41987 -
Training in progress, step 141000
Verified signaturef0854cf -
Training in progress, step 140000
Verified signature8eb4a78 -
Training in progress, step 139000
Verified signatureb5de9a3 -
Training in progress, step 138000
Verified signatured4c80b8 -
Training in progress, step 137000
Verified signature02d9148 -
Training in progress, step 136000
Verified signatured2e21dd -
Training in progress, step 135000
Verified signaturef9e0d14 -
Training in progress, step 134000
Verified signature747fefc -
Training in progress, step 133000
Verified signature46ce1ae -
Training in progress, step 132000
Verified signature8ed2648 -
Training in progress, step 131000
Verified signaturece7d652 -
Training in progress, step 130000
Verified signature5aa877f -
Training in progress, step 129000
Verified signature3625118 -
Training in progress, step 128000
Verified signature8425d45 -
Training in progress, step 127000
Verified signature529c4f2 -
Training in progress, step 126000
Verified signature80e97b2 -
Training in progress, step 125000
Verified signature394dda3 -
Training in progress, step 124000
Verified signature2eec368 -
Training in progress, step 123000
Verified signature5517114 -
Training in progress, step 122000
Verified signatured9d34c5 -
Training in progress, step 121000
Verified signaturef950540 -
Training in progress, step 120000
Verified signature49a5581 -
Training in progress, step 119000
Verified signature43d19e0 -
Training in progress, step 118000
Verified signaturedd80f89 -
Training in progress, step 117000
Verified signature17866a7 -
Training in progress, step 116000
Verified signature57372b1