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 5000
Verified signaturef97aaad -
Training in progress, step 4000
Verified signatured1f1d9f -
Training in progress, step 3000
Verified signature587eee4 -
Training in progress, step 2000
Verified signature4a7c3d5 -
Training in progress, step 1000
Verified signaturec6ee2e1 -
Upload tokenizer
Verified signature7a15587
-
Update README.md
Verified signature4c7bcde -
Rollback to 122000 step
Verified signature50d7638 -
Training in progress, step 173000
Verified signaturec80a8d5 -
Training in progress, step 172000
Verified signaturec940b9e -
Training in progress, step 171000
Verified signature09297ef -
Training in progress, step 170000
Verified signature03cfbc6 -
Training in progress, step 169000
Verified signatured66a17a -
Training in progress, step 168000
Verified signature24f0711 -
Training in progress, step 167000
Verified signaturef5f542a -
Training in progress, step 166000
Verified signaturee6d05ea -
Training in progress, step 165000
Verified signature0574a0f -
Training in progress, step 164000
Verified signatureb8c632a -
Training in progress, step 163000
Verified signatureeb574a5 -
Training in progress, step 162000
Verified signature766f1b6 -
Training in progress, step 161000
Verified signatureefe283b -
Training in progress, step 160000
Verified signatureaae624b -
Training in progress, step 159000
Verified signature7df200e
-
Training in progress, step 158000
Verified signature308980b -
Training in progress, step 157000
Verified signatureb0e884b -
Training in progress, step 156000
Verified signaturec78acef -
Training in progress, step 155000
Verified signaturee858b4e -
Training in progress, step 154000
Verified signature1898751 -
Training in progress, step 153000
Verified signature1dd3685 -
Training in progress, step 152000
Verified signature6ac9a19 -
Training in progress, step 151000
Verified signature36f3120 -
Training in progress, step 150000
Verified signaturef91608e -
Training in progress, step 149000
Verified signature2c7d5d8 -
Training in progress, step 147000
Verified signatureaab5478 -
Training in progress, step 146000
Verified signature9ee6383 -
Training in progress, step 145000
Verified signature81b4ae6 -
Training in progress, step 144000
Verified signatureae04406 -
Training in progress, step 143000
Verified signature244da0f -
Training in progress, step 142000
Verified signature8b41987 -
Training in progress, step 141000
Verified signaturef0854cf -
Training in progress, step 140000
Verified signature8eb4a78 -
Training in progress, step 139000
Verified signatureb5de9a3 -
Training in progress, step 138000
Verified signatured4c80b8 -
Training in progress, step 137000
Verified signature02d9148 -
Training in progress, step 136000
Verified signatured2e21dd -
Training in progress, step 135000
Verified signaturef9e0d14 -
Training in progress, step 134000
Verified signature747fefc -
Training in progress, step 133000
Verified signature46ce1ae -
Training in progress, step 132000
Verified signature8ed2648 -
Training in progress, step 131000
Verified signaturece7d652