Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use Sj8287/indic_punct_llama_finetuned_run2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sj8287/indic_punct_llama_finetuned_run2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sj8287/indic_punct_llama_finetuned_run2") 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("Sj8287/indic_punct_llama_finetuned_run2") model = AutoModelForCausalLM.from_pretrained("Sj8287/indic_punct_llama_finetuned_run2", 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 Sj8287/indic_punct_llama_finetuned_run2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sj8287/indic_punct_llama_finetuned_run2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sj8287/indic_punct_llama_finetuned_run2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sj8287/indic_punct_llama_finetuned_run2
- SGLang
How to use Sj8287/indic_punct_llama_finetuned_run2 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 "Sj8287/indic_punct_llama_finetuned_run2" \ --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": "Sj8287/indic_punct_llama_finetuned_run2", "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 "Sj8287/indic_punct_llama_finetuned_run2" \ --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": "Sj8287/indic_punct_llama_finetuned_run2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sj8287/indic_punct_llama_finetuned_run2 with Docker Model Runner:
docker model run hf.co/Sj8287/indic_punct_llama_finetuned_run2
Commit History
-
Model save
Verified signatured6638b1 -
Training in progress, epoch 1
Verified signaturee559453 -
Training in progress, epoch 1
Verified signature2c8157a -
Training in progress, epoch 1
Verified signatureac2871f -
Training in progress, epoch 1
Verified signature78b51f1 -
Training in progress, epoch 1
Verified signature051d883 -
Training in progress, epoch 1
Verified signatureae98eff -
Training in progress, epoch 1
Verified signatured29a741 -
Training in progress, epoch 1
Verified signature6ce57a6 -
Training in progress, epoch 1
Verified signature5c42fe8 -
Training in progress, epoch 1
Verified signature085a83e -
Training in progress, epoch 1
Verified signature8a4957c -
Training in progress, epoch 1
Verified signature74405bd -
Training in progress, epoch 1
Verified signature1d42af6 -
Training in progress, epoch 1
Verified signature868ed74 -
Training in progress, epoch 0
Verified signature7151844 -
Training in progress, epoch 0
Verified signature2a7e19e -
Training in progress, epoch 0
Verified signature8c12e8f -
Training in progress, epoch 0
Verified signature9e4d6a8 -
Training in progress, epoch 0
Verified signatureaef9920 -
Training in progress, epoch 0
Verified signatureaba6c5c -
Training in progress, epoch 0
Verified signature16521e8 -
Training in progress, epoch 0
Verified signature6d0a85c -
Training in progress, epoch 0
Verified signaturec5acb64 -
Training in progress, epoch 0
Verified signature229d55f -
Training in progress, epoch 0
Verified signaturef7c43ac -
Training in progress, epoch 0
Verified signatureb57bb4a -
Training in progress, epoch 0
Verified signature721542a -
Training in progress, epoch 0
Verified signature7fcdbee -
initial commit
Verified signature0e4e143