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
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- text-rewriting
|
| 7 |
+
- web
|
| 8 |
+
- generative-engine-optimization
|
| 9 |
+
- geo
|
| 10 |
+
- reinforcement-learning
|
| 11 |
+
- grpo
|
| 12 |
+
- qwen3
|
| 13 |
+
- transformers
|
| 14 |
+
- safetensors
|
| 15 |
+
library_name: transformers
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
base_model: Qwen/Qwen3-1.7B
|
| 18 |
+
---
|
| 19 |
+
# AutoGEO_mini_Qwen1.7B_GEOBench
|
| 20 |
+
|
| 21 |
+
A lightweight **web-document rewriting** model fine-tuned with **GRPO** (reinforcement learning) from **Qwen3-1.7B**, developed as part of the AutoGEO framework introduced in:
|
| 22 |
+
|
| 23 |
+
**WHAT GENERATIVE SEARCH ENGINES LIKE AND HOW TO OPTIMIZE WEB CONTENT COOPERATIVELY**
|
| 24 |
+
Paper (arXiv): https://arxiv.org/abs/2510.11438
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## What this model does
|
| 29 |
+
|
| 30 |
+
**AutoGEO_mini_Qwen1.7B_GEOBench** rewrites raw web documents into improved versions that are better aligned with generative search engines’ preferences for **GEO-Bench dataset**.
|
| 31 |
+
|
| 32 |
+
In our experiments/usage:
|
| 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 |
+
## Training summary
|
| 39 |
+
|
| 40 |
+
- **Base model:** Qwen3-1.7B
|
| 41 |
+
- **Method:** GRPO-based reinforcement learning fine-tuning
|
| 42 |
+
- **Task:** Rewrite original web documents to improve GEO metrics (per the AutoGEO framework in the paper above)
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Repository contents
|
| 47 |
+
|
| 48 |
+
This repository includes the standard inference artifacts (e.g., `model.safetensors`, `config.json`, `tokenizer.json`, `chat_template.jinja`, etc.) required to load and run the model with `transformers`.
|
| 49 |
+
|
| 50 |
+
---
|