Text Generation
Transformers
Safetensors
qwen3
agents
terminal
code
software-engineering
conversational
text-generation-inference
Instructions to use open-thoughts/OpenThinker-Agent-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use open-thoughts/OpenThinker-Agent-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="open-thoughts/OpenThinker-Agent-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("open-thoughts/OpenThinker-Agent-v1") model = AutoModelForCausalLM.from_pretrained("open-thoughts/OpenThinker-Agent-v1") 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 open-thoughts/OpenThinker-Agent-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "open-thoughts/OpenThinker-Agent-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "open-thoughts/OpenThinker-Agent-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/open-thoughts/OpenThinker-Agent-v1
- SGLang
How to use open-thoughts/OpenThinker-Agent-v1 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 "open-thoughts/OpenThinker-Agent-v1" \ --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": "open-thoughts/OpenThinker-Agent-v1", "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 "open-thoughts/OpenThinker-Agent-v1" \ --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": "open-thoughts/OpenThinker-Agent-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use open-thoughts/OpenThinker-Agent-v1 with Docker Model Runner:
docker model run hf.co/open-thoughts/OpenThinker-Agent-v1
Link model card to OpenThoughts-Agent paper
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -6,15 +6,15 @@ datasets:
|
|
| 6 |
- OpenThoughts-Agent-v1-RL
|
| 7 |
library_name: transformers
|
| 8 |
license: apache-2.0
|
| 9 |
-
model-index:
|
| 10 |
-
- name: OpenThinker-Agent-v1
|
| 11 |
-
results: []
|
| 12 |
pipeline_tag: text-generation
|
| 13 |
tags:
|
| 14 |
- agents
|
| 15 |
- terminal
|
| 16 |
- code
|
| 17 |
- software-engineering
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
<p align="center">
|
|
@@ -22,7 +22,8 @@ tags:
|
|
| 22 |
</p>
|
| 23 |
|
| 24 |
<p align="center">
|
| 25 |
-
<a href="https://
|
|
|
|
| 26 |
<a href="https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-v1-SFT" style="margin-right: 24px; margin-left: 24px;">SFT dataset</a> |
|
| 27 |
<a href="https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-v1-RL" style="margin-right: 24px; margin-left: 24px;">RL dataset</a> |
|
| 28 |
<a href="https://huggingface.co/open-thoughts/OpenThinker-Agent-v1-SFT" style="margin-right: 24px; margin-left: 24px;">SFT model</a> |
|
|
@@ -32,7 +33,7 @@ tags:
|
|
| 32 |
|
| 33 |
# OpenThinker-Agent-v1
|
| 34 |
|
| 35 |
-
**OpenThoughts-Agent** is an open-source effort to curate the best datasets for training agents. Our first release includes [datasets](https://huggingface.co/collections/open-thoughts/openthinker-agent), [models](https://huggingface.co/collections/open-thoughts/openthinker-agent) and our [research codebase](https://github.com/open-thoughts/OpenThoughts-Agent).
|
| 36 |
|
| 37 |
[OpenThinker-Agent-v1](https://huggingface.co/open-thoughts/OpenThinker-Agent-v1) is a model trained for agentic tasks such as **Terminal-Bench 2.0** and **SWE-Bench**.
|
| 38 |
|
|
@@ -41,6 +42,7 @@ It is SFT-ed on the [OpenThoughts-Agent-v1-SFT](https://huggingface.co/datasets/
|
|
| 41 |
|
| 42 |
This model is the final model after both SFT and RL. For the model after the SFT stage only, see [OpenThinker-Agent-v1-SFT](https://huggingface.co/open-thoughts/OpenThinker-Agent-v1-SFT).
|
| 43 |
|
|
|
|
| 44 |
- **Homepage:** https://www.openthoughts.ai/blog/agent
|
| 45 |
- **Repository:** https://github.com/open-thoughts/OpenThoughts-Agent
|
| 46 |
|
|
@@ -76,6 +78,7 @@ Optional difficulty filter: discard tasks that even a strong model (GPT-5 Codex)
|
|
| 76 |
|
| 77 |
|
| 78 |
# Links
|
|
|
|
| 79 |
- π [OpenThoughts-Agent project page](https://www.openthoughts.ai/blog/agent)
|
| 80 |
- π» [OpenThoughts-Agent GitHub repository](https://github.com/open-thoughts/OpenThoughts-Agent)
|
| 81 |
- π§ [OpenThoughts-Agent-v1-SFT dataset](https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-v1-SFT)
|
|
|
|
| 6 |
- OpenThoughts-Agent-v1-RL
|
| 7 |
library_name: transformers
|
| 8 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
| 9 |
pipeline_tag: text-generation
|
| 10 |
tags:
|
| 11 |
- agents
|
| 12 |
- terminal
|
| 13 |
- code
|
| 14 |
- software-engineering
|
| 15 |
+
model-index:
|
| 16 |
+
- name: OpenThinker-Agent-v1
|
| 17 |
+
results: []
|
| 18 |
---
|
| 19 |
|
| 20 |
<p align="center">
|
|
|
|
| 22 |
</p>
|
| 23 |
|
| 24 |
<p align="center">
|
| 25 |
+
<a href="https://huggingface.co/papers/2606.24855" style="margin-right: 24px;">Paper</a> |
|
| 26 |
+
<a href="https://www.openthoughts.ai/blog/agent" style="margin-right: 24px; margin-left: 24px;">Project</a> |
|
| 27 |
<a href="https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-v1-SFT" style="margin-right: 24px; margin-left: 24px;">SFT dataset</a> |
|
| 28 |
<a href="https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-v1-RL" style="margin-right: 24px; margin-left: 24px;">RL dataset</a> |
|
| 29 |
<a href="https://huggingface.co/open-thoughts/OpenThinker-Agent-v1-SFT" style="margin-right: 24px; margin-left: 24px;">SFT model</a> |
|
|
|
|
| 33 |
|
| 34 |
# OpenThinker-Agent-v1
|
| 35 |
|
| 36 |
+
**OpenThoughts-Agent** is an open-source effort to curate the best datasets for training agents. Our first release includes [datasets](https://huggingface.co/collections/open-thoughts/openthinker-agent), [models](https://huggingface.co/collections/open-thoughts/openthinker-agent) and our [research codebase](https://github.com/open-thoughts/OpenThoughts-Agent). For more details, please see our paper: [OpenThoughts-Agent: Data Recipes for Agentic Models](https://huggingface.co/papers/2606.24855).
|
| 37 |
|
| 38 |
[OpenThinker-Agent-v1](https://huggingface.co/open-thoughts/OpenThinker-Agent-v1) is a model trained for agentic tasks such as **Terminal-Bench 2.0** and **SWE-Bench**.
|
| 39 |
|
|
|
|
| 42 |
|
| 43 |
This model is the final model after both SFT and RL. For the model after the SFT stage only, see [OpenThinker-Agent-v1-SFT](https://huggingface.co/open-thoughts/OpenThinker-Agent-v1-SFT).
|
| 44 |
|
| 45 |
+
- **Paper:** https://huggingface.co/papers/2606.24855
|
| 46 |
- **Homepage:** https://www.openthoughts.ai/blog/agent
|
| 47 |
- **Repository:** https://github.com/open-thoughts/OpenThoughts-Agent
|
| 48 |
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
# Links
|
| 81 |
+
- π [OpenThoughts-Agent Paper](https://huggingface.co/papers/2606.24855)
|
| 82 |
- π [OpenThoughts-Agent project page](https://www.openthoughts.ai/blog/agent)
|
| 83 |
- π» [OpenThoughts-Agent GitHub repository](https://github.com/open-thoughts/OpenThoughts-Agent)
|
| 84 |
- π§ [OpenThoughts-Agent-v1-SFT dataset](https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-v1-SFT)
|