Instructions to use minpeter/tiny-ko-20m-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-20m-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-20m-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-20m-base") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-20m-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/tiny-ko-20m-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-20m-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-20m-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-20m-base
- SGLang
How to use minpeter/tiny-ko-20m-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-20m-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-20m-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-20m-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-20m-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-20m-base with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-20m-base
Commit History
-
Update README.md
Verified signature2ec53f4
-
Update tokenizer_config.json
Verified signature083b441 -
Training in progress, step 56949
Verified signaturecf5f617 -
Training in progress, step 56000
Verified signaturec1e0089 -
Training in progress, step 55000
Verified signatureace9a14 -
Training in progress, step 54000
Verified signature8b5ae86 -
Training in progress, step 53000
Verified signature390c496 -
Training in progress, step 52000
Verified signature36b5efb -
Training in progress, step 51000
Verified signature999b275 -
Training in progress, step 50000
Verified signature7f3496e -
Training in progress, step 49000
Verified signaturea9ca361 -
Training in progress, step 48000
Verified signature22c7ed2 -
Training in progress, step 47000
Verified signatureed2bf20 -
Training in progress, step 46000
Verified signature6e098fb -
Training in progress, step 45000
Verified signaturefdaea74 -
Training in progress, step 44000
Verified signaturefba68af -
Training in progress, step 43000
Verified signature72ebcb9 -
Training in progress, step 42000
Verified signature798413b -
Training in progress, step 41000
Verified signaturebdf25c5 -
Training in progress, step 40000
Verified signature5329efe -
Training in progress, step 39000
Verified signature3e60258 -
Training in progress, step 38000
Verified signature6e30038 -
Training in progress, step 37000
Verified signature9b01050 -
Training in progress, step 36000
Verified signature4a62668 -
Training in progress, step 35000
Verified signature994a908 -
Training in progress, step 34000
Verified signature3630e94 -
Training in progress, step 33000
Verified signaturef4cff44 -
Training in progress, step 32000
Verified signature4a5ef62 -
Training in progress, step 31000
Verified signaturebf3e57f -
Training in progress, step 30000
Verified signature891957c -
Training in progress, step 29000
Verified signature4ed4e2e -
Training in progress, step 28000
Verified signaturecb608ec -
Training in progress, step 27000
Verified signaturebd01d04 -
Training in progress, step 26000
Verified signature9f6b7a8 -
Training in progress, step 25000
Verified signature01efa0a -
Training in progress, step 24000
Verified signaturebe85b66 -
Training in progress, step 23000
Verified signature8004ed1 -
Training in progress, step 22000
Verified signature4525273 -
Training in progress, step 21000
Verified signature4020c88 -
Training in progress, step 20000
Verified signature05faddb -
Training in progress, step 19000
Verified signatured9046f6 -
Training in progress, step 18000
Verified signature450fc14 -
Training in progress, step 17000
Verified signaturebbfd6f2 -
Training in progress, step 16000
Verified signaturea286ef6 -
Training in progress, step 15000
Verified signatured18348b -
Training in progress, step 14000
Verified signature52262f2 -
Training in progress, step 13000
Verified signature0df4df0 -
Training in progress, step 12000
Verified signaturedc48ece -
Training in progress, step 11000
Verified signature204b12a -
Training in progress, step 10000
Verified signature6a9d1ad