Text Generation
Transformers
Safetensors
English
qwen3
text-rewriting
web
generative-engine-optimization
geo
reinforcement-learning
grpo
conversational
text-generation-inference
Instructions to use cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench") model = AutoModelForCausalLM.from_pretrained("cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench", device_map="auto") 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 cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench
- SGLang
How to use cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench 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 "cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench" \ --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": "cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench", "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 "cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench" \ --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": "cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench with Docker Model Runner:
docker model run hf.co/cx-cmu/AutoGEO_mini_Qwen1.7B_GEOBench
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,33 +18,62 @@ base_model: Qwen/Qwen3-1.7B
|
|
| 18 |
---
|
| 19 |
# AutoGEO_mini_Qwen1.7B_GEOBench
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
Paper (arXiv): https://arxiv.org/abs/2510.11438
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
**
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
- The total cost is about **0.0071×** the cost of **gemini-2.5-pro** for comparable rewriting workloads.
|
| 34 |
-
- Rewritten documents achieve **significant improvements in GEO metrics**.
|
| 35 |
|
| 36 |
-
-
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
- **Task:** Rewrite original web documents to improve GEO metrics (per the AutoGEO framework in the paper above)
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
-
##
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
# AutoGEO_mini_Qwen1.7B_GEOBench
|
| 20 |
|
| 21 |
+
# AutoGEO<sub>Mini</sub> (Qwen1.7B, GEOBench)
|
| 22 |
|
| 23 |
+
AutoGEO<sub>Mini</sub> (Qwen1.7B, GEOBench) is a GEO model designed to improve how web document is incorporated into answers generated by **LLM-based search engines**.
|
|
|
|
| 24 |
|
| 25 |
+
The model rewrites a given document to better match the preferences of generative engines (e.g., GPT, Gemini, Claude), with the goal of increasing the document’s **visibility and coverage** in generated responses, while **preserving the original meaning and factual content**.
|
| 26 |
|
| 27 |
+
This model is part of the **AutoGEO** framework proposed in the paper
|
| 28 |
|
| 29 |
+
📄 **Paper:** ["What Generative Search Engines Like and How to Optimize Web Content Cooperatively"](https://arxiv.org/abs/2510.11438)
|
| 30 |
+
👥 **Authors:** Yujiang Wu*, Shanshan Zhong*, Yubin Kim, Chenyan Xiong (*Equal contribution)
|
| 31 |
+
🚀 **Code:** [AutoGEO on GitHub](https://github.com/cxcscmu/AutoGEO)
|
| 32 |
|
| 33 |
+
## Usage
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
This model is designed to be used through the [**AutoGEO framework**](https://github.com/cxcscmu/AutoGEO). Try it out in [huggingface Space](https://huggingface.co/spaces/cx-cmu/AutoGEO_Mini) or
|
| 36 |
|
| 37 |
+
Quick starts:
|
| 38 |
|
| 39 |
+
```python
|
| 40 |
+
from autogeo.rewriters import rewrite_document
|
|
|
|
| 41 |
|
| 42 |
+
rewritten_text = rewrite_document(
|
| 43 |
+
document="Input text.",
|
| 44 |
+
dataset="GEOBench",
|
| 45 |
+
engine_llm="gemini",
|
| 46 |
+
model_path="cx-cmu/AutoGEO_mini_Qwen1.7B_ResearchyGEO",
|
| 47 |
+
)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
Evaluation:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
python -m autogeo.evaluate \
|
| 54 |
+
--model autogeo_mini \
|
| 55 |
+
--model_path cx-cmu/AutoGEO_mini_Qwen1.7B_ResearchyGEO \
|
| 56 |
+
--dataset GEOBench
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
## Related Resources
|
| 62 |
+
|
| 63 |
+
* **Paper:** [https://arxiv.org/abs/2510.11438](https://arxiv.org/abs/2510.11438)
|
| 64 |
+
* **Code:** [https://github.com/cxcscmu/AutoGEO](https://github.com/cxcscmu/AutoGEO)
|
| 65 |
+
* **Demo:** [https://huggingface.co/spaces/cx-cmu/AutoGEO_Mini](https://huggingface.co/spaces/cx-cmu/AutoGEO_Mini)
|
| 66 |
+
* **Dataset:** [https://huggingface.co/datasets/cx-cmu/GEOBench](https://huggingface.co/datasets/cx-cmu/GEOBench)
|
| 67 |
|
| 68 |
+
## Citation
|
| 69 |
|
| 70 |
+
If you use this model, please cite:
|
| 71 |
|
| 72 |
+
```bibtex
|
| 73 |
+
@article{wu2025generative,
|
| 74 |
+
title={What Generative Search Engines Like and How to Optimize Web Content Cooperatively},
|
| 75 |
+
author={Wu, Yujiang and Zhong, Shanshan and Kim, Yubin and Xiong, Chenyan},
|
| 76 |
+
journal={arXiv preprint arXiv:2510.11438},
|
| 77 |
+
year={2025}
|
| 78 |
+
}
|
| 79 |
+
```
|