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,9 +18,9 @@ base_model: Qwen/Qwen3-1.7B
|
|
| 18 |
datasets:
|
| 19 |
- cx-cmu/GEO-Bench
|
| 20 |
---
|
| 21 |
-
# AutoGEO<sub>Mini</sub> (Qwen1.7B,
|
| 22 |
|
| 23 |
-
AutoGEO<sub>Mini</sub> (Qwen1.7B,
|
| 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 |
|
|
@@ -41,7 +41,7 @@ from autogeo.rewriters import rewrite_document
|
|
| 41 |
|
| 42 |
rewritten_text = rewrite_document(
|
| 43 |
document="Input text.",
|
| 44 |
-
dataset="
|
| 45 |
engine_llm="gemini",
|
| 46 |
model_path="cx-cmu/AutoGEO_mini_Qwen1.7B_ResearchyGEO",
|
| 47 |
)
|
|
@@ -53,7 +53,7 @@ Evaluation:
|
|
| 53 |
python -m autogeo.evaluate \
|
| 54 |
--model autogeo_mini \
|
| 55 |
--model_path cx-cmu/AutoGEO_mini_Qwen1.7B_ResearchyGEO \
|
| 56 |
-
--dataset
|
| 57 |
```
|
| 58 |
|
| 59 |
|
|
@@ -62,7 +62,7 @@ python -m autogeo.evaluate \
|
|
| 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 |
-
* **Dataset:** [https://huggingface.co/datasets/cx-cmu/
|
| 66 |
|
| 67 |
## Citation
|
| 68 |
|
|
|
|
| 18 |
datasets:
|
| 19 |
- cx-cmu/GEO-Bench
|
| 20 |
---
|
| 21 |
+
# AutoGEO<sub>Mini</sub> (Qwen1.7B, GEO-Bench)
|
| 22 |
|
| 23 |
+
AutoGEO<sub>Mini</sub> (Qwen1.7B, GEO-Bench) 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 |
|
|
|
|
| 41 |
|
| 42 |
rewritten_text = rewrite_document(
|
| 43 |
document="Input text.",
|
| 44 |
+
dataset="GEO-Bench",
|
| 45 |
engine_llm="gemini",
|
| 46 |
model_path="cx-cmu/AutoGEO_mini_Qwen1.7B_ResearchyGEO",
|
| 47 |
)
|
|
|
|
| 53 |
python -m autogeo.evaluate \
|
| 54 |
--model autogeo_mini \
|
| 55 |
--model_path cx-cmu/AutoGEO_mini_Qwen1.7B_ResearchyGEO \
|
| 56 |
+
--dataset GEO-Bench
|
| 57 |
```
|
| 58 |
|
| 59 |
|
|
|
|
| 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 |
+
* **Dataset:** [https://huggingface.co/datasets/cx-cmu/GEO-Bench](https://huggingface.co/datasets/cx-cmu/GEO-Bench)
|
| 66 |
|
| 67 |
## Citation
|
| 68 |
|