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 69000
Verified signatureeb95193 -
Training in progress, step 68000
Verified signatureab669ff -
Training in progress, step 67000
Verified signature600d06c -
Training in progress, step 66000
Verified signaturec11f083 -
Training in progress, step 65000
Verified signature5f43780 -
Training in progress, step 64000
Verified signature2085fa2 -
Training in progress, step 63000
Verified signaturef4534fe -
Training in progress, step 62000
Verified signaturecf0dfec -
Training in progress, step 61000
Verified signatured683229 -
Training in progress, step 60000
Verified signaturee10399f -
Training in progress, step 59000
Verified signaturea013539 -
Training in progress, step 58000
Verified signature7d0e335 -
Training in progress, step 57000
Verified signatured92964e -
Training in progress, step 56000
Verified signaturecfb121b -
Training in progress, step 55000
Verified signature67d83d6 -
Training in progress, step 54000
Verified signature23d85ba -
Training in progress, step 53000
Verified signature1d4b7bb -
Training in progress, step 52000
Verified signaturec50b2c0 -
Training in progress, step 51000
Verified signature67d9dd9 -
Training in progress, step 50000
Verified signaturede0f5bd -
Training in progress, step 49000
Verified signaturefd78fe8 -
Training in progress, step 48000
Verified signature9541925 -
Training in progress, step 47000
Verified signature48e6d3e -
Training in progress, step 46000
Verified signaturef30eece -
Training in progress, step 45000
Verified signature5b66664 -
Training in progress, step 44000
Verified signature0580ef6 -
Training in progress, step 43000
Verified signatureb53c936 -
Training in progress, step 42000
Verified signaturef77dfc4 -
Training in progress, step 41000
Verified signaturebcbee41 -
Training in progress, step 40000
Verified signaturec3801c3
-
Training in progress, step 39000
Verified signature61a5bbd -
Training in progress, step 38000
Verified signature858a40f -
Training in progress, step 37000
Verified signature5ee5845 -
Training in progress, step 36000
Verified signature41af111 -
Training in progress, step 35000
Verified signaturea931f32 -
Training in progress, step 34000
Verified signature42957c7 -
Training in progress, step 33000
Verified signature89eae58 -
Training in progress, step 32000
Verified signature490ffdd -
Training in progress, step 31000
Verified signature9bc886b -
Training in progress, step 30000
Verified signaturee87078b -
Training in progress, step 29000
Verified signature13b7d14 -
Training in progress, step 28000
Verified signature85ac930 -
Training in progress, step 27000
Verified signaturee8e197d -
Training in progress, step 26000
Verified signaturef23f08c -
Training in progress, step 25000
Verified signature11a6999 -
Training in progress, step 24000
Verified signaturee74016e -
Training in progress, step 23000
Verified signaturec476fd5 -
Training in progress, step 22000
Verified signaturebd4a0e4 -
Training in progress, step 21000
Verified signaturefae427f -
Training in progress, step 20000
Verified signaturef4c572f