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
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.fc58e92 -
End of training
ef0dc59 -
End of training
0901f54 -
End of training
6b2ea68 -
End of training
470fc3b -
End of training
cd25d4e -
End of training
09f641d
-
End of training
fe44cdb -
End of training
94b889c -
End of training
5c66921 -
End of training
6b72b9c -
End of training
5f50a16 -
End of training
7967b3a -
End of training
6aff702 -
End of training
51f8fd9 -
End of training
7771de8 -
End of training
757fa4d -
End of training
7fc7963 -
Delete README.md
a934a27 -
first commit
7b9a87d -
Delete generation_config.json
392c8d2 -
Upload 4 files
60405ee
-
Upload generation_config.json
9c996b0 -
Delete trainer_state.json
b119acd -
Delete scheduler.pt
54f7386 -
Delete rng_state.pth
98f2d64
-
Upload 11 files
3281c39 -
initial commit
9da49e4