Instructions to use Zhengping/conditional-probability-regression with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zhengping/conditional-probability-regression with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zhengping/conditional-probability-regression") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zhengping/conditional-probability-regression") model = AutoModelForCausalLM.from_pretrained("Zhengping/conditional-probability-regression") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Zhengping/conditional-probability-regression with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zhengping/conditional-probability-regression" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zhengping/conditional-probability-regression", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Zhengping/conditional-probability-regression
- SGLang
How to use Zhengping/conditional-probability-regression 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 "Zhengping/conditional-probability-regression" \ --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": "Zhengping/conditional-probability-regression", "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 "Zhengping/conditional-probability-regression" \ --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": "Zhengping/conditional-probability-regression", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Zhengping/conditional-probability-regression with Docker Model Runner:
docker model run hf.co/Zhengping/conditional-probability-regression
Update README.md
Browse files
README.md
CHANGED
|
@@ -215,70 +215,17 @@ Use the code below to get started with the model.
|
|
| 215 |
|
| 216 |
#### Summary
|
| 217 |
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
## Model Examination [optional]
|
| 221 |
-
|
| 222 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 223 |
-
|
| 224 |
-
[More Information Needed]
|
| 225 |
-
|
| 226 |
-
## Environmental Impact
|
| 227 |
-
|
| 228 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 229 |
-
|
| 230 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 231 |
-
|
| 232 |
-
- **Hardware Type:** [More Information Needed]
|
| 233 |
-
- **Hours used:** [More Information Needed]
|
| 234 |
-
- **Cloud Provider:** [More Information Needed]
|
| 235 |
-
- **Compute Region:** [More Information Needed]
|
| 236 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 237 |
-
|
| 238 |
-
## Technical Specifications [optional]
|
| 239 |
-
|
| 240 |
-
### Model Architecture and Objective
|
| 241 |
-
|
| 242 |
-
[More Information Needed]
|
| 243 |
-
|
| 244 |
-
### Compute Infrastructure
|
| 245 |
-
|
| 246 |
-
[More Information Needed]
|
| 247 |
-
|
| 248 |
-
#### Hardware
|
| 249 |
-
|
| 250 |
-
[More Information Needed]
|
| 251 |
-
|
| 252 |
-
#### Software
|
| 253 |
-
|
| 254 |
-
[More Information Needed]
|
| 255 |
|
| 256 |
## Citation [optional]
|
| 257 |
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
[More Information Needed]
|
| 267 |
-
|
| 268 |
-
## Glossary [optional]
|
| 269 |
-
|
| 270 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 271 |
-
|
| 272 |
-
[More Information Needed]
|
| 273 |
-
|
| 274 |
-
## More Information [optional]
|
| 275 |
-
|
| 276 |
-
[More Information Needed]
|
| 277 |
-
|
| 278 |
-
## Model Card Authors [optional]
|
| 279 |
-
|
| 280 |
-
[More Information Needed]
|
| 281 |
-
|
| 282 |
-
## Model Card Contact
|
| 283 |
|
| 284 |
-
|
|
|
|
| 215 |
|
| 216 |
#### Summary
|
| 217 |
|
| 218 |
+
LLM-based Fine-grained Conditional Probability Estimation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
|
| 220 |
## Citation [optional]
|
| 221 |
|
| 222 |
+
```bibtex
|
| 223 |
+
@article{wang2025always,
|
| 224 |
+
title={Always Tell Me The Odds: Fine-grained Conditional Probability Estimation},
|
| 225 |
+
author={Wang, Liaoyaqi and Jiang, Zhengping and Liu, Anqi and Van Durme, Benjamin},
|
| 226 |
+
journal={arXiv preprint arXiv:2505.01595},
|
| 227 |
+
year={2025}
|
| 228 |
+
}
|
| 229 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
|
| 231 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|