Instructions to use minpeter/tiny-ko-124m-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-124m-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-124m-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-124m-base") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-124m-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/tiny-ko-124m-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-124m-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-124m-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-124m-base
- SGLang
How to use minpeter/tiny-ko-124m-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-124m-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-124m-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-124m-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-124m-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-124m-base with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-124m-base
Commit History
-
Update README.md
Verified signature86a17b4
-
Update tokenizer_config.json
Verified signature4b7d4e0
-
Training in progress, step 93295
Verified signature2c47279 -
Training in progress, step 93000
Verified signature5e385eb -
Training in progress, step 92000
Verified signatureadb8d91 -
Training in progress, step 91000
Verified signature71182fc -
Training in progress, step 90000
Verified signature1b73df1 -
Training in progress, step 89000
Verified signature4e5c8ed -
Training in progress, step 88000
Verified signature81e7147 -
Training in progress, step 87000
Verified signature9da2d38 -
Training in progress, step 86000
Verified signature1143516 -
Training in progress, step 85000
Verified signaturebadbbe5 -
Training in progress, step 84000
Verified signature952c067 -
Training in progress, step 83000
Verified signature2feb713 -
Training in progress, step 82000
Verified signaturee427329 -
Training in progress, step 81000
Verified signaturea056e5e -
Training in progress, step 80000
Verified signaturedc4c71c -
Training in progress, step 79000
Verified signature90204b5 -
Training in progress, step 78000
Verified signature5fdc9b0 -
Training in progress, step 77000
Verified signature9f8c073 -
Training in progress, step 76000
Verified signature955a4f0 -
Training in progress, step 75000
Verified signature7763e27 -
Training in progress, step 74000
Verified signature7a3285c -
Training in progress, step 73000
Verified signaturea789e40 -
Training in progress, step 72000
Verified signaturefebb060 -
Training in progress, step 71000
Verified signaturefabab0c -
Training in progress, step 70000
Verified signatureaba93c3 -
Training in progress, step 69000
Verified signaturea858fc5 -
Training in progress, step 68000
Verified signature0da01e5 -
Training in progress, step 67000
Verified signature2ae97ad -
Training in progress, step 66000
Verified signaturedf42f1f -
Training in progress, step 65000
Verified signatureff54d80 -
Training in progress, step 64000
Verified signature988bcab -
Training in progress, step 63000
Verified signature099ae8c -
Training in progress, step 62000
Verified signature780893b -
Training in progress, step 61000
Verified signaturec55888d -
Training in progress, step 60000
Verified signature5bd4ab7 -
Training in progress, step 59000
Verified signature2a82741 -
Training in progress, step 58000
Verified signatured70f751 -
Training in progress, step 57000
Verified signature27e4cb8 -
Training in progress, step 56000
Verified signature22ee3a3 -
Training in progress, step 55000
Verified signature798d829 -
Training in progress, step 54000
Verified signature83e710e -
Training in progress, step 53000
Verified signature3db07f9 -
Training in progress, step 52000
Verified signature134f3d3 -
Training in progress, step 51000
Verified signature6416bce -
Training in progress, step 50000
Verified signature4a4a1fd
-
Training in progress, step 49000
Verified signature9be8b6c -
Training in progress, step 48000
Verified signaturefab825d -
Training in progress, step 47000
Verified signature795c8f1