Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use mukhea5/tinyllama-sft-hh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mukhea5/tinyllama-sft-hh with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mukhea5/tinyllama-sft-hh") 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("mukhea5/tinyllama-sft-hh") model = AutoModelForCausalLM.from_pretrained("mukhea5/tinyllama-sft-hh", 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 mukhea5/tinyllama-sft-hh with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mukhea5/tinyllama-sft-hh" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mukhea5/tinyllama-sft-hh", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mukhea5/tinyllama-sft-hh
- SGLang
How to use mukhea5/tinyllama-sft-hh 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 "mukhea5/tinyllama-sft-hh" \ --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": "mukhea5/tinyllama-sft-hh", "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 "mukhea5/tinyllama-sft-hh" \ --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": "mukhea5/tinyllama-sft-hh", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mukhea5/tinyllama-sft-hh with Docker Model Runner:
docker model run hf.co/mukhea5/tinyllama-sft-hh
Commit History
-
End of training
Verified signaturebb0ff55 -
Training in progress, step 19094
Verified signatured407002 -
Training in progress, step 19000
Verified signature7e06dcb -
Training in progress, step 18500
Verified signature6df7421 -
Training in progress, step 18000
Verified signature04a4de9 -
Training in progress, step 17500
Verified signature42a74d0 -
Training in progress, step 17000
Verified signature57a0dbe -
Training in progress, step 16500
Verified signatured53af17 -
Training in progress, step 16000
Verified signatureba41f71 -
Training in progress, step 15500
Verified signaturead2cf99 -
Training in progress, step 15000
Verified signature385eb9a -
Training in progress, step 14500
Verified signature90eb8f8 -
Training in progress, step 14000
Verified signaturec81c32b -
Training in progress, step 13500
Verified signaturede2ec5d -
Training in progress, step 13000
Verified signatureaa3f9d4 -
Training in progress, step 12500
Verified signature0b53713 -
Training in progress, step 12000
Verified signature526f787 -
Training in progress, step 11500
Verified signature060a598 -
Training in progress, step 11000
Verified signaturec2cf222 -
Training in progress, step 10500
Verified signatureab28901 -
Training in progress, step 10000
Verified signature56b7759 -
Training in progress, step 9500
Verified signature24b204b -
Training in progress, step 9000
Verified signature26ba2ad -
Training in progress, step 8500
Verified signature9aee176 -
Training in progress, step 8000
Verified signatured92d772 -
Training in progress, step 7500
Verified signaturec511486 -
Training in progress, step 7000
Verified signature35bb5a5 -
Training in progress, step 6500
Verified signature4fbe972 -
Training in progress, step 6000
Verified signature80f0b20 -
Training in progress, step 5500
Verified signature9b11866 -
Training in progress, step 5000
Verified signature1cd39e0 -
Training in progress, step 4500
Verified signaturebabe5c5 -
Training in progress, step 4000
Verified signature54a36ea -
Training in progress, step 3500
Verified signature9a072ba -
Training in progress, step 3000
Verified signature01ea744 -
Training in progress, step 2500
Verified signature3b76a87 -
Training in progress, step 2000
Verified signaturef781858 -
Training in progress, step 1500
Verified signaturea8eb96a -
Training in progress, step 1000
Verified signature1426e6d -
Training in progress, step 500
Verified signature70e9194 -
initial commit
Verified signaturef5b86bf