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 115000
Verified signature040752e -
Training in progress, step 114000
Verified signaturef34fad3
-
Training in progress, step 113000
Verified signatured34afa6 -
Training in progress, step 112000
Verified signature8d8c20f -
Training in progress, step 111000
Verified signature3b20a0e -
Training in progress, step 110000
Verified signaturef05c6ff -
Training in progress, step 109000
Verified signaturee79e6e9 -
Training in progress, step 108000
Verified signature31a385e -
Training in progress, step 107000
Verified signature7d6d48d -
Training in progress, step 106000
Verified signature87ab8d6 -
Training in progress, step 105000
Verified signature148a854 -
Training in progress, step 104000
Verified signature9a8f592 -
Training in progress, step 103000
Verified signatured9af39f -
Training in progress, step 102000
Verified signatured031bc5 -
Training in progress, step 101000
Verified signaturefc76d91 -
Training in progress, step 100000
Verified signaturef170f5e -
Training in progress, step 99000
Verified signature6af0e3e -
Training in progress, step 98000
Verified signature306cd55 -
Training in progress, step 97000
Verified signature235b237 -
Training in progress, step 96000
Verified signaturede99ca5 -
Training in progress, step 95000
Verified signature671f25b -
Training in progress, step 94000
Verified signature0518015 -
Training in progress, step 93000
Verified signature343dabe -
Training in progress, step 92000
Verified signaturef8ffdcb -
Training in progress, step 91000
Verified signature98d2af9 -
Training in progress, step 90000
Verified signature4ce29e7 -
Training in progress, step 89000
Verified signaturef9d1392 -
Training in progress, step 88000
Verified signature476c012 -
Training in progress, step 87000
Verified signature55fe95c -
Training in progress, step 86000
Verified signaturef2a6f09 -
Training in progress, step 85000
Verified signaturebe7c634 -
Training in progress, step 84000
Verified signature57eb501 -
Training in progress, step 83000
Verified signature2e25747 -
Training in progress, step 82000
Verified signature548610b -
Training in progress, step 81000
Verified signature0418a67 -
Training in progress, step 80000
Verified signatureed9f722 -
Training in progress, step 79000
Verified signatureef46af8 -
Training in progress, step 78000
Verified signature3337266 -
Training in progress, step 77000
Verified signature5b48010 -
Training in progress, step 76000
Verified signature00586be -
Training in progress, step 75000
Verified signaturebdf685c -
Training in progress, step 74000
Verified signatured967a74 -
Training in progress, step 73000
Verified signatured0a4ebd -
Training in progress, step 72000
Verified signaturece731a1 -
Training in progress, step 71000
Verified signaturedce98c7 -
Training in progress, step 70000
Verified signature2531ee0 -
Training in progress, step 69000
Verified signature8a61a68
-
Training in progress, step 68000
Verified signaturea665803 -
Training in progress, step 67000
Verified signature7be1c49 -
Training in progress, step 66000
Verified signature00c1e51