Instructions to use Xtra-Computing/XtraGPT-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xtra-Computing/XtraGPT-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Xtra-Computing/XtraGPT-7B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Xtra-Computing/XtraGPT-7B", dtype="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Xtra-Computing/XtraGPT-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xtra-Computing/XtraGPT-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xtra-Computing/XtraGPT-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Xtra-Computing/XtraGPT-7B
- SGLang
How to use Xtra-Computing/XtraGPT-7B 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 "Xtra-Computing/XtraGPT-7B" \ --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": "Xtra-Computing/XtraGPT-7B", "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 "Xtra-Computing/XtraGPT-7B" \ --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": "Xtra-Computing/XtraGPT-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Xtra-Computing/XtraGPT-7B with Docker Model Runner:
docker model run hf.co/Xtra-Computing/XtraGPT-7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -188,13 +188,12 @@ For more details on the license terms, please visit [ModelGo.li](https://www.mod
|
|
| 188 |
If you use XtraGPT in your research, please cite our paper:
|
| 189 |
|
| 190 |
```
|
| 191 |
-
@
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
url={https://arxiv.org/abs/2505.11336},
|
| 199 |
}
|
| 200 |
```
|
|
|
|
| 188 |
If you use XtraGPT in your research, please cite our paper:
|
| 189 |
|
| 190 |
```
|
| 191 |
+
@inproceedings{
|
| 192 |
+
chen2026xtragpt,
|
| 193 |
+
title={XtraGPT: Context-Aware and Controllable Academic Paper Revision via Human-AI Collaboration},
|
| 194 |
+
author={Nuo Chen and Andre Lin HuiKai and Jiaying Wu and Junyi Hou and Zining Zhang and Qian Wang and Xidong Wang and Bingsheng He},
|
| 195 |
+
booktitle = "Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
|
| 196 |
+
year={2026},
|
| 197 |
+
note={Available on arXiv:2505.11336}
|
|
|
|
| 198 |
}
|
| 199 |
```
|