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 65000
Verified signaturee160ed6 -
Training in progress, step 64000
Verified signature84b7f65 -
Training in progress, step 63000
Verified signaturedef0ed4 -
Training in progress, step 62000
Verified signatured0c4bdf -
Training in progress, step 61000
Verified signature1fde29f -
Training in progress, step 60000
Verified signature32ad51c -
Training in progress, step 59000
Verified signatureda39809 -
Training in progress, step 58000
Verified signature9017308 -
Training in progress, step 57000
Verified signature12a52fe -
Training in progress, step 56000
Verified signature47a335f -
Training in progress, step 55000
Verified signature38f946e -
Training in progress, step 54000
Verified signature4d323b9 -
Training in progress, step 53000
Verified signature76c264b -
Training in progress, step 52000
Verified signature7fb1075 -
Training in progress, step 50000
Verified signature904a161 -
Training in progress, step 49000
Verified signaturef838e53 -
Training in progress, step 48000
Verified signature80e5a26 -
Training in progress, step 47000
Verified signature9db23da -
Training in progress, step 46000
Verified signature68910bc -
Training in progress, step 45000
Verified signature894850d -
Training in progress, step 44000
Verified signaturef2c938a -
Training in progress, step 43000
Verified signature20cd429 -
Training in progress, step 42000
Verified signatured849199 -
Training in progress, step 41000
Verified signaturebb50e90 -
Training in progress, step 40000
Verified signature95f9a35 -
Training in progress, step 39000
Verified signaturecd29385 -
Training in progress, step 38000
Verified signature181ad6e -
Training in progress, step 37000
Verified signaturef7a7242 -
Training in progress, step 36000
Verified signature9dc895a -
Training in progress, step 35000
Verified signaturecdaab18 -
Training in progress, step 34000
Verified signatureafa2fb0 -
Training in progress, step 33000
Verified signaturedacf20b -
Training in progress, step 32000
Verified signature846bf14 -
Training in progress, step 31000
Verified signature3cccd46 -
Training in progress, step 30000
Verified signature15c1381 -
Training in progress, step 29000
Verified signature0c59e90 -
Training in progress, step 28000
Verified signaturecdfd747 -
Training in progress, step 27000
Verified signature4ae9aa0 -
Training in progress, step 26000
Verified signature7d4b1bc -
Training in progress, step 25000
Verified signatureb22906f
-
Training in progress, step 24000
Verified signature49fff41 -
Training in progress, step 23000
Verified signature6775d4a -
Training in progress, step 22000
Verified signaturea71d637 -
Training in progress, step 21000
Verified signature3362ad6 -
Training in progress, step 20000
Verified signature788194f -
Training in progress, step 19000
Verified signature928d7ff -
Training in progress, step 18000
Verified signature0530795 -
Training in progress, step 17000
Verified signature8415c3e -
Training in progress, step 16000
Verified signaturee34e0e3 -
Training in progress, step 15000
Verified signaturee547d76