Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
unsloth
4-bit precision
Instructions to use shashikanth-a/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shashikanth-a/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shashikanth-a/model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shashikanth-a/model") model = AutoModelForCausalLM.from_pretrained("shashikanth-a/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shashikanth-a/model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shashikanth-a/model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shashikanth-a/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/shashikanth-a/model
- SGLang
How to use shashikanth-a/model 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 "shashikanth-a/model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shashikanth-a/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "shashikanth-a/model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shashikanth-a/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use shashikanth-a/model with Docker Model Runner:
docker model run hf.co/shashikanth-a/model
Commit History
-
(Trained with Unsloth)
Verified signature90b127f -
(Trained with Unsloth)
Verified signature007b3d5
-
(Trained with Unsloth)
Verified signature6804cfc -
(Trained with Unsloth)
Verified signature83331b0 -
(Trained with Unsloth)
Verified signature16b3baf
-
(Trained with Unsloth)
Verified signature6f4ba13
-
(Trained with Unsloth)
Verified signature018c4d8 -
(Trained with Unsloth)
Verified signatureb3f91ce
-
(Trained with Unsloth)
Verified signature79d16e1
-
(Trained with Unsloth)
Verified signature83cdd39
-
(Trained with Unsloth)
Verified signature63f3da1
-
(Trained with Unsloth)
Verified signatureb040349
-
(Trained with Unsloth)
Verified signaturee0de035 -
(Trained with Unsloth)
Verified signature27cb97b
-
(Trained with Unsloth)
Verified signature3694b5b -
(Trained with Unsloth)
Verified signature9f6e1e4 -
(Trained with Unsloth)
Verified signature93e7311
-
(Trained with Unsloth)
Verified signatureed29b62
-
(Trained with Unsloth)
Verified signaturefe5497a -
(Trained with Unsloth)
Verified signatureeee96a4
-
(Trained with Unsloth)
Verified signature2147dc2
-
(Trained with Unsloth)
Verified signature11c2707 -
(Trained with Unsloth)
Verified signature4442fb3
-
(Trained with Unsloth)
Verified signature44734f0
-
(Trained with Unsloth)
Verified signatureae91331
-
(Trained with Unsloth)
Verified signature2d76388
-
(Trained with Unsloth)
Verified signature5bd3382
-
(Trained with Unsloth)
Verified signaturedbacdfc -
(Trained with Unsloth)
Verified signature1dc72d2 -
(Trained with Unsloth)
Verified signature9cc5dd8
-
(Trained with Unsloth)
Verified signature412d0a7
-
(Trained with Unsloth)
Verified signature4dd8812 -
(Trained with Unsloth)
Verified signature7669164 -
(Trained with Unsloth)
Verified signatureccf6409
-
(Trained with Unsloth)
Verified signature2a85158 -
(Trained with Unsloth)
Verified signaturea86e0f5 -
(Trained with Unsloth)
Verified signatureba0087f -
(Trained with Unsloth)
Verified signaturedc02c31
-
(Trained with Unsloth)
Verified signature2b615c6
-
(Trained with Unsloth)
Verified signature8b7e40d -
(Trained with Unsloth)
Verified signature2737ec1 -
(Trained with Unsloth)
Verified signaturee06128f -
(Trained with Unsloth)
Verified signatured84542d -
(Trained with Unsloth)
Verified signature94bed69
-
(Trained with Unsloth)
Verified signature3242807 -
(Trained with Unsloth)
Verified signatured1592df -
(Trained with Unsloth)
Verified signature530139e
-
(Trained with Unsloth)
Verified signatured5288bb -
(Trained with Unsloth)
Verified signaturef039361
-
(Trained with Unsloth)
Verified signature1c968c1