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
-
Training in progress, step 6000
Verified signaturefc53f99 -
Training in progress, step 5000
Verified signature7f5acd4 -
Training in progress, step 4000
Verified signature18483b8 -
Training in progress, step 3000
Verified signature81cade1 -
Training in progress, step 2000
Verified signaturec5a5fe5 -
Training in progress, step 1000
Verified signature0d3c5b9
-
Training in progress, step 7179
Verified signature4558000 -
Training in progress, step 7000
Verified signature23ca8a6 -
Training in progress, step 6000
Verified signature4d75946 -
Training in progress, step 5000
Verified signaturec3e9e4a -
Training in progress, step 4000
Verified signature27e72db -
Training in progress, step 3000
Verified signaturefb32c4a -
Training in progress, step 2000
Verified signatureb8e042d -
Training in progress, step 1000
Verified signature034508d -
Training in progress, step 450
Verified signature63d9099 -
Training in progress, step 5
Verified signature3e01580 -
Training in progress, step 5
Verified signaturef704842 -
Training in progress, step 127
Verified signature0ad4b82 -
Training in progress, step 1000
Verified signaturebefb5c1 -
Training in progress, step 300
Verified signature8358159 -
Training in progress, step 300
Verified signature7c3982d -
Training in progress, step 120
Verified signature6eb087c -
Training in progress, step 60
Verified signature291cd1c -
Training in progress, step 15
Verified signatureee77a45 -
Training in progress, step 25
Verified signatureb31d2f8 -
Training in progress, step 785
Verified signaturea8fe5c4 -
Upload tokenizer
Verified signature9dd526f -
Upload tokenizer
Verified signaturebb71db2 -
Training in progress, step 313
Verified signature7e6e0d9 -
Upload tokenizer
Verified signatureb0fc6a2 -
Upload tokenizer
Verified signature60af077 -
initial commit
Verified signaturee378fd7