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 35000
Verified signature46bfa77 -
Training in progress, step 34000
Verified signaturee78b588 -
Training in progress, step 33000
Verified signatureab31723 -
Training in progress, step 32000
Verified signaturecc472ef -
Training in progress, step 31000
Verified signatureb007d21 -
Training in progress, step 30000
Verified signature802d267 -
Training in progress, step 29000
Verified signature973c9ac -
Training in progress, step 28000
Verified signature0cc3437 -
Training in progress, step 27000
Verified signaturee977c71 -
Training in progress, step 26000
Verified signatureb050216 -
Training in progress, step 25000
Verified signature7a003dd -
Training in progress, step 24000
Verified signature7e692fc -
Training in progress, step 23000
Verified signature26e7400 -
Training in progress, step 22000
Verified signature4620894 -
Training in progress, step 21000
Verified signaturef95f825 -
Training in progress, step 20000
Verified signaturee925314 -
Training in progress, step 19000
Verified signaturec15ea60 -
Training in progress, step 18000
Verified signaturef13972b -
Training in progress, step 17000
Verified signaturecf3c3cc -
Training in progress, step 16000
Verified signature24ecde4 -
Training in progress, step 15000
Verified signature03ca11a -
Training in progress, step 14000
Verified signature869c959 -
Training in progress, step 13000
Verified signature26a894b -
Training in progress, step 12000
Verified signaturebf88d50 -
Training in progress, step 11000
Verified signatureed828b8 -
Training in progress, step 10000
Verified signaturee234d86 -
Training in progress, step 9000
Verified signature0f20a5c -
Training in progress, step 8000
Verified signature529309f -
Training in progress, step 7000
Verified signature754384a -
Training in progress, step 6000
Verified signature793e42d -
Training in progress, step 5000
Verified signaturecbd4201
-
Training in progress, step 4000
Verified signature9ec3af4 -
Training in progress, step 3000
Verified signature6d8d85d -
Training in progress, step 2000
Verified signature79a2dd2 -
Delete chat_template.jinja
Verified signaturecdff40c -
Upload tokenizer
Verified signature07e0917 -
Training in progress, step 1000
Verified signature1ee42cc -
Training in progress, step 28000
Verified signaturef57124a -
Training in progress, step 27000
Verified signaturebc08470 -
Training in progress, step 26000
Verified signatured9e1498 -
Training in progress, step 25000
Verified signaturea662334 -
Training in progress, step 24000
Verified signature2862fb0 -
Training in progress, step 23000
Verified signature2dee732 -
Training in progress, step 22000
Verified signature89ea647 -
Training in progress, step 21000
Verified signature7f359ad -
Training in progress, step 20000
Verified signature3f98398 -
Training in progress, step 19000
Verified signature5d0baae -
Training in progress, step 18000
Verified signatureb4e2c5b -
Training in progress, step 17000
Verified signature501d933 -
Training in progress, step 16000
Verified signatured0bc6e4