Text Generation
Transformers
Safetensors
English
qwen3
agent
conversational
text-generation-inference
Instructions to use Zichen1024/CoVe-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zichen1024/CoVe-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zichen1024/CoVe-4B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zichen1024/CoVe-4B") model = AutoModelForCausalLM.from_pretrained("Zichen1024/CoVe-4B") 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
- Local Apps Settings
- vLLM
How to use Zichen1024/CoVe-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zichen1024/CoVe-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zichen1024/CoVe-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Zichen1024/CoVe-4B
- SGLang
How to use Zichen1024/CoVe-4B 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 "Zichen1024/CoVe-4B" \ --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": "Zichen1024/CoVe-4B", "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 "Zichen1024/CoVe-4B" \ --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": "Zichen1024/CoVe-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Zichen1024/CoVe-4B with Docker Model Runner:
docker model run hf.co/Zichen1024/CoVe-4B
Add library_name and base_model metadata
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
datasets:
|
| 4 |
- Zichen1024/CoVe-12k
|
|
|
|
| 5 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
| 6 |
tags:
|
| 7 |
- agent
|
|
|
|
| 8 |
---
|
|
|
|
| 9 |
<p align="center">
|
| 10 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/670a8557222579c05ec3005c/Mxt8wCxBLOs674WQ0jMIG.png" alt="CoVe Mascot" width="400"/>
|
| 11 |
</p>
|
| 12 |
|
| 13 |
<p align="center">
|
| 14 |
-
<a href="https://
|
| 15 |
<a href="https://cove-agent.github.io">π Website</a> |
|
| 16 |
<a href="https://huggingface.co/datasets/Zichen1024/CoVe-12k">π€ Dataset</a> |
|
| 17 |
</p>
|
|
@@ -20,6 +24,8 @@ tags:
|
|
| 20 |
|
| 21 |
**CoVe-4B** is a compact 4B interactive tool-use agent fine-tuned from [Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507) using the **CoVe** (Constraint-Verification) post-training framework. It is trained on [CoVe-12K](https://huggingface.co/datasets/Zichen1024/CoVe-12k), a dataset of 12K high-quality multi-turn tool-use trajectories synthesized and verified by deterministic constraint checking.
|
| 22 |
|
|
|
|
|
|
|
| 23 |
## Framework
|
| 24 |
|
| 25 |
<p style="text-align: justify;">
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
datasets:
|
| 3 |
- Zichen1024/CoVe-12k
|
| 4 |
+
license: apache-2.0
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
+
library_name: transformers
|
| 7 |
+
base_model: Qwen/Qwen3-4B-Instruct-2507
|
| 8 |
tags:
|
| 9 |
- agent
|
| 10 |
+
- tool-use
|
| 11 |
---
|
| 12 |
+
|
| 13 |
<p align="center">
|
| 14 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/670a8557222579c05ec3005c/Mxt8wCxBLOs674WQ0jMIG.png" alt="CoVe Mascot" width="400"/>
|
| 15 |
</p>
|
| 16 |
|
| 17 |
<p align="center">
|
| 18 |
+
<a href="https://huggingface.co/papers/2603.01940">π Paper</a> |
|
| 19 |
<a href="https://cove-agent.github.io">π Website</a> |
|
| 20 |
<a href="https://huggingface.co/datasets/Zichen1024/CoVe-12k">π€ Dataset</a> |
|
| 21 |
</p>
|
|
|
|
| 24 |
|
| 25 |
**CoVe-4B** is a compact 4B interactive tool-use agent fine-tuned from [Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507) using the **CoVe** (Constraint-Verification) post-training framework. It is trained on [CoVe-12K](https://huggingface.co/datasets/Zichen1024/CoVe-12k), a dataset of 12K high-quality multi-turn tool-use trajectories synthesized and verified by deterministic constraint checking.
|
| 26 |
|
| 27 |
+
The model was introduced in the paper [CoVe: Training Interactive Tool-Use Agents via Constraint-Guided Verification](https://huggingface.co/papers/2603.01940).
|
| 28 |
+
|
| 29 |
## Framework
|
| 30 |
|
| 31 |
<p style="text-align: justify;">
|