Text Generation
Transformers
Safetensors
llama
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use sampluralis/llama-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sampluralis/llama-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sampluralis/llama-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("sampluralis/llama-sft") model = AutoModelForCausalLM.from_pretrained("sampluralis/llama-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 sampluralis/llama-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sampluralis/llama-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": "sampluralis/llama-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sampluralis/llama-sft
- SGLang
How to use sampluralis/llama-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 "sampluralis/llama-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": "sampluralis/llama-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 "sampluralis/llama-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": "sampluralis/llama-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sampluralis/llama-sft with Docker Model Runner:
docker model run hf.co/sampluralis/llama-sft
Commit History
-
Training in progress, step 13135
Verified signaturecefbd87 -
Training in progress, step 12950
Verified signatureb16b236 -
Training in progress, step 12765
Verified signaturea9d3824
-
Training in progress, step 12580
Verified signatureb995ce1 -
Training in progress, step 12395
Verified signaturebb6c9d8 -
Training in progress, step 12210
Verified signaturefbb1068 -
Training in progress, step 12025
Verified signaturee7b01f1 -
Training in progress, step 11840
Verified signature92d69bf -
Training in progress, step 11655
Verified signature6c46637 -
Training in progress, step 11470
Verified signature905b295 -
Training in progress, step 11285
Verified signature1eeeda3 -
Training in progress, step 11100
Verified signaturedeffda6 -
Training in progress, step 10915
Verified signature33c683c -
Training in progress, step 10730
Verified signature931e71c -
Training in progress, step 10545
Verified signature0084b51 -
Training in progress, step 10360
Verified signature4084328 -
Training in progress, step 10175
Verified signatureb9e9fe1 -
Training in progress, step 9990
Verified signaturebbdb366 -
Training in progress, step 9805
Verified signature86f485b -
Training in progress, step 9620
Verified signatureb479c54 -
Training in progress, step 9435
Verified signatureb05a800 -
Training in progress, step 9250
Verified signature7e8c90f -
Training in progress, step 9065
Verified signature85e5577 -
Training in progress, step 8880
Verified signaturedbd8e14 -
Training in progress, step 8695
Verified signature5686116 -
Training in progress, step 8510
Verified signature9824f88 -
Training in progress, step 8325
Verified signature0de9cd6 -
Training in progress, step 8140
Verified signature6a0a38d -
Training in progress, step 7955
Verified signature56396fc -
Training in progress, step 7770
Verified signatured55e812 -
Training in progress, step 7585
Verified signaturebbcbcc3 -
Training in progress, step 7400
Verified signatureadd0424 -
Training in progress, step 7215
Verified signaturedf7991f -
Training in progress, step 7030
Verified signature36f2087 -
Training in progress, step 6845
Verified signature9c900a3 -
Training in progress, step 6660
Verified signature667a7be
-
Training in progress, step 6475
Verified signature5dcb7c1 -
Training in progress, step 6290
Verified signatureb7047f8 -
Training in progress, step 6105
Verified signature8b2d6b1 -
Training in progress, step 5920
Verified signature7577782 -
Training in progress, step 5735
Verified signature4d31e04 -
Training in progress, step 5550
Verified signaturedad262d -
Training in progress, step 5365
Verified signatureb94cd76 -
Training in progress, step 5180
Verified signaturefd4c4e0 -
Training in progress, step 4995
Verified signaturecab38f8 -
Training in progress, step 4810
Verified signature597d67f -
Training in progress, step 4625
Verified signature901239f -
Training in progress, step 4440
Verified signatureeca7930 -
Training in progress, step 4255
Verified signature239cc08 -
Training in progress, step 4070
Verified signature5b70aa8