Instructions to use minpeter/tiny-ko-20m-base-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-20m-base-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-20m-base-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-20m-base-en") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-20m-base-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/tiny-ko-20m-base-en with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/tiny-ko-20m-base-en" # 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-20m-base-en", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-20m-base-en
- SGLang
How to use minpeter/tiny-ko-20m-base-en 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-20m-base-en" \ --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-20m-base-en", "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-20m-base-en" \ --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-20m-base-en", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-20m-base-en with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-20m-base-en
Commit History
-
Update README.md
Verified signature4e33936
-
Training in progress, step 200000
Verified signaturede81449 -
Training in progress, step 199000
Verified signature1a917d4 -
Training in progress, step 198000
Verified signaturee40e2e2 -
Training in progress, step 197000
Verified signature68bd095 -
Training in progress, step 196000
Verified signature082c546 -
Training in progress, step 195000
Verified signaturea80e01d -
Training in progress, step 194000
Verified signature3259cce -
Training in progress, step 193000
Verified signature7c0a231 -
Training in progress, step 192000
Verified signature4f659b3 -
Training in progress, step 191000
Verified signature30258a3 -
Training in progress, step 190000
Verified signaturec500648 -
Training in progress, step 189000
Verified signature5bbb6bb -
Training in progress, step 188000
Verified signature2132203 -
Training in progress, step 187000
Verified signature5adea71 -
Training in progress, step 186000
Verified signature6ba8241 -
Training in progress, step 185000
Verified signature0706388 -
Training in progress, step 184000
Verified signaturef3ffe09 -
Training in progress, step 183000
Verified signaturec163a62 -
Training in progress, step 182000
Verified signature4dcfcf6 -
Training in progress, step 181000
Verified signature961236f -
Training in progress, step 180000
Verified signature94780bd -
Training in progress, step 179000
Verified signature9eae908 -
Training in progress, step 178000
Verified signature66458e1 -
Training in progress, step 177000
Verified signature1ce5d09 -
Training in progress, step 176000
Verified signature35e9d1c
-
Training in progress, step 175000
Verified signaturec347e7b -
Training in progress, step 174000
Verified signature3a63c82 -
Training in progress, step 173000
Verified signaturef5386aa -
Training in progress, step 172000
Verified signature7977c29 -
Training in progress, step 171000
Verified signature153fd4b -
Training in progress, step 170000
Verified signaturea80ebd6 -
Training in progress, step 169000
Verified signature5badbf0 -
Training in progress, step 168000
Verified signature7951d86 -
Training in progress, step 167000
Verified signaturec5e1105 -
Training in progress, step 166000
Verified signature3f7169b -
Training in progress, step 165000
Verified signaturea262e63 -
Training in progress, step 164000
Verified signature7191caf -
Training in progress, step 163000
Verified signatureed0744e -
Training in progress, step 162000
Verified signaturef56570d -
Training in progress, step 161000
Verified signatureaed8ec8 -
Training in progress, step 160000
Verified signature7016cb8 -
Training in progress, step 159000
Verified signaturea2e9004 -
Training in progress, step 158000
Verified signatureaa7060d -
Training in progress, step 157000
Verified signatured9039cb -
Training in progress, step 156000
Verified signature15105c9 -
Training in progress, step 155000
Verified signaturef2df4b9 -
Training in progress, step 154000
Verified signature4fbc6f9 -
Training in progress, step 153000
Verified signature0d9ad9f -
Training in progress, step 152000
Verified signature20742a4