Text Generation
Transformers
Safetensors
qwen3
agents
terminal
code
software-engineering
conversational
text-generation-inference
Instructions to use open-thoughts/OpenThinker-Agent-v1-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use open-thoughts/OpenThinker-Agent-v1-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="open-thoughts/OpenThinker-Agent-v1-SFT") 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-SFT") model = AutoModelForCausalLM.from_pretrained("open-thoughts/OpenThinker-Agent-v1-SFT") 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 open-thoughts/OpenThinker-Agent-v1-SFT 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-SFT" # 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-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/open-thoughts/OpenThinker-Agent-v1-SFT
- SGLang
How to use open-thoughts/OpenThinker-Agent-v1-SFT 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-SFT" \ --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-SFT", "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-SFT" \ --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-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use open-thoughts/OpenThinker-Agent-v1-SFT with Docker Model Runner:
docker model run hf.co/open-thoughts/OpenThinker-Agent-v1-SFT
Link model 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,6 +22,7 @@ tags:
|
|
| 22 |
</p>
|
| 23 |
|
| 24 |
<p align="center">
|
|
|
|
| 25 |
<a href="https://www.openthoughts.ai/blog/agent" style="margin-right: 24px;">Project</a> |
|
| 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> |
|
|
@@ -34,6 +35,8 @@ tags:
|
|
| 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 |
|
| 39 |
The [OpenThinker-Agent-v1](https://huggingface.co/open-thoughts/OpenThinker-Agent-v1) model is post-trained from [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B).
|
|
|
|
| 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;">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> |
|
|
|
|
| 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).
|
| 37 |
|
| 38 |
+
This model is presented in the paper [OpenThoughts-Agent: Data Recipes for Agentic Models](https://huggingface.co/papers/2606.24855).
|
| 39 |
+
|
| 40 |
[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**.
|
| 41 |
|
| 42 |
The [OpenThinker-Agent-v1](https://huggingface.co/open-thoughts/OpenThinker-Agent-v1) model is post-trained from [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B).
|