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
-
End of training
Verified signature2364f9a -
Training in progress, step 817
Verified signaturec8d2686 -
Training in progress, step 800
Verified signature96e8fb2 -
Training in progress, step 600
Verified signature916dd10 -
Training in progress, step 400
Verified signaturebd452e6 -
Training in progress, step 200
Verified signaturefa1d80b
-
Training in progress, step 600
Verified signaturea4ebb0d -
Training in progress, step 400
Verified signature0bc7f99 -
Delete files tokenizer/* with huggingface_hub
Verified signature1f73a2e -
Training in progress, step 200
Verified signaturee811a04
-
Training in progress, step 8600
Verified signature11c6d46 -
Training in progress, step 8400
Verified signaturea658a67 -
Training in progress, step 8000
Verified signature424107e -
Training in progress, step 7800
Verified signature27e131f -
Training in progress, step 7600
Verified signature050845b -
Training in progress, step 7400
Verified signature7d86962 -
Training in progress, step 7200
Verified signature19f737b -
Training in progress, step 7000
Verified signaturea12f186 -
Training in progress, step 6800
Verified signature7953275 -
Training in progress, step 6600
Verified signature2c408cc -
Training in progress, step 6400
Verified signaturebec8d70 -
Training in progress, step 6200
Verified signatureebd4e46 -
Training in progress, step 6000
Verified signature66754c6 -
Training in progress, step 5800
Verified signature91d600a -
Training in progress, step 5600
Verified signature1e7d84b -
Training in progress, step 5400
Verified signature28a32e2 -
Training in progress, step 5200
Verified signature668bc57 -
Training in progress, step 5000
Verified signature8e6fb18 -
Training in progress, step 4800
Verified signature72caeb3 -
Training in progress, step 4600
Verified signature612f436 -
Training in progress, step 4400
Verified signaturee5b53bc
-
Training in progress, step 4200
Verified signature0dd3650 -
Training in progress, step 4000
Verified signatureadb11d7 -
Training in progress, step 3800
Verified signature8e6cf55 -
Training in progress, step 3600
Verified signature1bf07d2 -
Training in progress, step 3400
Verified signature8c7139a -
Training in progress, step 3200
Verified signatureb9d93a1 -
Training in progress, step 3000
Verified signaturec411b95 -
Training in progress, step 2800
Verified signature8dab6d2 -
Training in progress, step 2600
Verified signaturefe70ccc -
Training in progress, step 2400
Verified signature6fcd31e -
Training in progress, step 2200
Verified signature3161579 -
Training in progress, step 2000
Verified signature991b9cb -
Training in progress, step 1800
Verified signature89a6780 -
Training in progress, step 1600
Verified signaturec13c453 -
Training in progress, step 1400
Verified signature7dfe887 -
Training in progress, step 1200
Verified signaturedc55cd7 -
Training in progress, step 1000
Verified signature02d251b -
Training in progress, step 800
Verified signatured7008ee -
Training in progress, step 600
Verified signature71ce584