Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use minpeter/tiny-ko-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-sft") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-sft", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/tiny-ko-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/tiny-ko-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/tiny-ko-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/minpeter/tiny-ko-sft
- SGLang
How to use minpeter/tiny-ko-sft 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-sft" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/tiny-ko-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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-sft" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/tiny-ko-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use minpeter/tiny-ko-sft with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-sft
Commit History
-
Training in progress, step 2000
Verified signatureb88449a -
Training in progress, step 1800
Verified signature9fc0da1 -
Training in progress, step 1600
Verified signatured1c875d -
Training in progress, step 1400
Verified signature1987c75 -
Training in progress, step 1200
Verified signaturef11c754 -
Training in progress, step 1000
Verified signature3054364 -
Training in progress, step 800
Verified signaturef4c259b -
Training in progress, step 600
Verified signature8f4c961 -
Training in progress, step 400
Verified signaturec0f8c8e -
Training in progress, step 200
Verified signaturecd77592
-
End of training
Verified signature8251d5e -
Training in progress, step 2972
Verified signature79d4269 -
Training in progress, step 2800
Verified signature6a80c96 -
Training in progress, step 2600
Verified signaturefb4cf6c -
Training in progress, step 2400
Verified signature5fc6b66 -
Training in progress, step 2200
Verified signature7903ab7 -
Training in progress, step 2000
Verified signaturec615b64 -
Training in progress, step 1800
Verified signature0c582d7 -
Training in progress, step 1600
Verified signature592edd1 -
Training in progress, step 1400
Verified signature8ad9f0d -
Training in progress, step 1200
Verified signaturece2360a -
Training in progress, step 1000
Verified signature68c3e81 -
Training in progress, step 800
Verified signaturee25208a -
Training in progress, step 600
Verified signature22cd2a1 -
Training in progress, step 400
Verified signature69600d4 -
Training in progress, step 200
Verified signature567e5d6 -
End of training
Verified signatureca09cf7 -
Training in progress, step 387
Verified signature95caa39 -
Training in progress, step 200
Verified signaturecc61af4
-
End of training
Verified signaturea2c65f3 -
Training in progress, step 264
Verified signature60f3e9b -
Training in progress, step 200
Verified signatureb755bf3 -
End of training
Verified signature30a7914 -
Training in progress, step 112
Verified signature206cd4d -
End of training
Verified signature9cd5dcc -
Training in progress, step 102
Verified signaturea744799 -
End of training
Verified signature4f649b0 -
Training in progress, step 48
Verified signatured310e67
-
End of training
Verified signature2eb873e -
Training in progress, step 1498
Verified signature6abd0b9 -
Training in progress, step 749
Verified signature13be18a -
End of training
Verified signatureec5f789 -
Training in progress, step 176
Verified signature44627b2 -
Training in progress, step 88
Verified signature1ed185d -
initial commit
Verified signaturea7cade4