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
-
Update README.md
Verified signature2e8a777
-
Rollback
Verified signaturefa17e76 -
Training in progress, step 157
Verified signature9535a09 -
Upload tokenizer
Verified signature56f5cb3
-
Training in progress, step 114475
Verified signature1751a3c -
Training in progress, step 114000
Verified signaturea893d08 -
Training in progress, step 113000
Verified signature92834a3 -
Training in progress, step 112000
Verified signaturedc0780d -
Training in progress, step 111000
Verified signaturea96df64 -
Training in progress, step 110000
Verified signature0a5ffc7 -
Training in progress, step 109000
Verified signaturee969af1 -
Training in progress, step 108000
Verified signature7ba5ad8 -
Training in progress, step 107000
Verified signaturedcc8c6a -
Training in progress, step 106000
Verified signature6098033 -
Training in progress, step 105000
Verified signature681bde1 -
Training in progress, step 104000
Verified signature2491015 -
Training in progress, step 103000
Verified signature0e9c365 -
Training in progress, step 102000
Verified signatureddcdfb8 -
Training in progress, step 101000
Verified signature2704661 -
Training in progress, step 100000
Verified signature4dbefc0 -
Training in progress, step 99000
Verified signature1b392e6 -
Training in progress, step 98000
Verified signature6af1b57 -
Training in progress, step 97000
Verified signature3a76fd8 -
Training in progress, step 96000
Verified signature60cdebf -
Training in progress, step 95000
Verified signature02e2932 -
Training in progress, step 94000
Verified signature16d7880 -
Training in progress, step 93000
Verified signature49ba54d -
Training in progress, step 92000
Verified signature6565976 -
Training in progress, step 91000
Verified signatured3e93f4 -
Training in progress, step 90000
Verified signature5717a6b
-
Training in progress, step 89000
Verified signature66985e0 -
Training in progress, step 88000
Verified signaturef4b611c -
Training in progress, step 87000
Verified signature9341097 -
Training in progress, step 86000
Verified signaturebb76cec -
Training in progress, step 85000
Verified signature422360d -
Training in progress, step 84000
Verified signature4b918fd -
Training in progress, step 83000
Verified signaturee4a3925 -
Training in progress, step 82000
Verified signature491afca -
Training in progress, step 81000
Verified signature05c6d2e -
Training in progress, step 80000
Verified signature123e3c3 -
Training in progress, step 79000
Verified signature3be447c -
Training in progress, step 78000
Verified signature077004b -
Training in progress, step 77000
Verified signaturec4ade7f -
Training in progress, step 76000
Verified signature82bc8ae -
Training in progress, step 75000
Verified signature5b2993b -
Training in progress, step 74000
Verified signature0370d57 -
Training in progress, step 73000
Verified signature1703044 -
Training in progress, step 72000
Verified signature8c8f9fa -
Training in progress, step 71000
Verified signatureb75729c -
Training in progress, step 70000
Verified signature7cb471e