Text Generation
Transformers
Safetensors
English
Hindi
parambharatgen
Multiturn
QnA
Summarization
conversational
custom_code
Instructions to use bharatgenai/LegalParam with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bharatgenai/LegalParam with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bharatgenai/LegalParam", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("bharatgenai/LegalParam", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bharatgenai/LegalParam with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bharatgenai/LegalParam" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bharatgenai/LegalParam", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bharatgenai/LegalParam
- SGLang
How to use bharatgenai/LegalParam 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 "bharatgenai/LegalParam" \ --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": "bharatgenai/LegalParam", "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 "bharatgenai/LegalParam" \ --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": "bharatgenai/LegalParam", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bharatgenai/LegalParam with Docker Model Runner:
docker model run hf.co/bharatgenai/LegalParam
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,7 @@ tags:
|
|
| 8 |
- Summarization
|
| 9 |
pipeline_tag: text-generation
|
| 10 |
library_name: transformers
|
|
|
|
| 11 |
---
|
| 12 |
<div align="center">
|
| 13 |
<img src="https://huggingface.co/bharatgenai/Param-1-2.9B-Instruct/resolve/main/BharatGen%20Logo%20(1).png" width="60%" alt="BharatGen" />
|
|
@@ -194,9 +195,4 @@ print(tokenizer.decode(output[0], skip_special_tokens=True))
|
|
| 194 |
| **Hard** | 27.51 | 29.23 | 27.70 | 31.81 | 32.57 | 33.05 | 30.18 |
|
| 195 |
| **Medium** | 30.25 | 32.45 | 26.46 | 32.49 | 32.77 | 34.30 | 31.61 |
|
| 196 |
|
| 197 |
-
---
|
| 198 |
-
|
| 199 |
-
## 📜 License
|
| 200 |
-
|
| 201 |
-
This SFT checkpoint is released under the **BharatGen non-commercial license**.<br>
|
| 202 |
-
Please refer to the [LICENSE](./LICENSE) for terms and conditions.
|
|
|
|
| 8 |
- Summarization
|
| 9 |
pipeline_tag: text-generation
|
| 10 |
library_name: transformers
|
| 11 |
+
license: apache-2.0
|
| 12 |
---
|
| 13 |
<div align="center">
|
| 14 |
<img src="https://huggingface.co/bharatgenai/Param-1-2.9B-Instruct/resolve/main/BharatGen%20Logo%20(1).png" width="60%" alt="BharatGen" />
|
|
|
|
| 195 |
| **Hard** | 27.51 | 29.23 | 27.70 | 31.81 | 32.57 | 33.05 | 30.18 |
|
| 196 |
| **Medium** | 30.25 | 32.45 | 26.46 | 32.49 | 32.77 | 34.30 | 31.61 |
|
| 197 |
|
| 198 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|