Instructions to use Recag/bharat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Recag/bharat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Recag/bharat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Recag/bharat") model = AutoModelForCausalLM.from_pretrained("Recag/bharat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Recag/bharat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Recag/bharat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Recag/bharat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Recag/bharat
- SGLang
How to use Recag/bharat 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 "Recag/bharat" \ --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": "Recag/bharat", "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 "Recag/bharat" \ --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": "Recag/bharat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Recag/bharat with Docker Model Runner:
docker model run hf.co/Recag/bharat
Commit History
-
End of training
ae98b48
-
End of training
bd5737e -
End of training
90ba10f -
End of training
fcd3ac8 -
End of training
28c40d0 -
End of training
b077755 -
End of training
068afc4 -
End of training
ad4ebc2 -
End of training
58aef22 -
End of training
f8f9b54 -
End of training
1099401 -
End of training
73e1aab -
End of training
418ea1f -
End of training
1cf92d6 -
End of training
6041dbc -
End of training
347e7b9 -
End of training
23465c7 -
End of training
3754f52 -
End of training
6f966fb -
End of training
3bce9fb -
End of training
ab86abd -
End of training
098255b -
End of training
02172c9 -
End of training
a400ae0 -
End of training
c3d3659 -
End of training
b96069e -
End of training
d6bdf79 -
End of training
9d151be -
End of training
9e3ecc8 -
End of training
ed978fb -
End of training
51e0dc4 -
End of training
4a3023e -
End of training
d5cd039 -
End of training
a715d41 -
End of training
ac5714d -
End of training
0820896 -
End of training
77f4574 -
End of training
e16334b -
End of training
5b13614 -
End of training
b077d82 -
End of training
957b914 -
End of training
b6d5069 -
End of training
00250f5 -
End of training
73fbef3 -
End of training
05357e4 -
End of training
91b35c8 -
End of training
48497d4 -
End of training
008b24a -
End of training
18cb84c -
End of training
b7a6d36