Instructions to use OpenResearcher/OpenResearcher-30B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenResearcher/OpenResearcher-30B-A3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OpenResearcher/OpenResearcher-30B-A3B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("OpenResearcher/OpenResearcher-30B-A3B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("OpenResearcher/OpenResearcher-30B-A3B", trust_remote_code=True, 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OpenResearcher/OpenResearcher-30B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenResearcher/OpenResearcher-30B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenResearcher/OpenResearcher-30B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OpenResearcher/OpenResearcher-30B-A3B
- SGLang
How to use OpenResearcher/OpenResearcher-30B-A3B 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 "OpenResearcher/OpenResearcher-30B-A3B" \ --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": "OpenResearcher/OpenResearcher-30B-A3B", "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 "OpenResearcher/OpenResearcher-30B-A3B" \ --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": "OpenResearcher/OpenResearcher-30B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OpenResearcher/OpenResearcher-30B-A3B with Docker Model Runner:
docker model run hf.co/OpenResearcher/OpenResearcher-30B-A3B
Commit History
-
Update model card: add pipeline tag, paper link, and sample usage
Verified signatureHi there! I'm Niels from the community science team at Hugging Face. This PR improves your model card with the following: - Adds the `pipeline_tag: text-generation` to the metadata for better Hub discoverability. - Adds a direct link to the associated research paper: [OpenResearcher: A Fully Open Pipeline for Long-Horizon Deep Research Trajectory Synthesis](https://huggingface.co/papers/2603.20278). - Includes a sample usage section based on the code provided in your GitHub repository. These changes help users find and use your model more effectively. Feel free to merge if this looks good!73a9013
-
Update README.md
Verified signaturea24e74b
-
Upload main-table.png
Verified signatured75894e
-
Adding `transformers` as the library name (#3)
- Adding `transformers` as the library name (fb842d8395a1eba5d6c7242e7952ace22d8b1f17) Co-authored-by: Aritra Roy Gosthipaty <ariG23498@users.noreply.huggingface.co>d7a84d1
-
Upload teaser.png
Verified signature7613a47
-
Upload teaser.png
Verified signature3796539 -
Update README.md
Verified signature9e48b6d -
Update README.md
Verified signature2288cee
-
Update README.md
Verified signature99e916e -
Update README.md
Verified signatureac1a8ea -
Update README.md
Verified signatureabeb0bb
-
Update README.md
Verified signaturea635da5 -
Update README.md
Verified signature032d571 -
Update README.md
Verified signature778bac6 -
Upload wechat_group.jpg
Verified signature6dc1970
-
Update README.md
Verified signature96184dd
-
Update README.md
Verified signature14af96b
-
Update README.md
Verified signature9ef36aa -
Update README.md
Verified signature04e64e4 -
Update README.md
Verified signature9af4e87 -
Update README.md
Verified signaturee9f33f9 -
Update README.md
Verified signature78b0924 -
Delete imgs/eval.svg
Verified signature6da7096 -
Upload eval.png
Verified signature2a3e284 -
Upload 2 files
Verified signaturef7fedc2 -
Update README.md
Verified signature310c4c4
-
Upload teaser.png
Verified signature060a67f -
Update README.md
Verified signature4dbb4c7
-
Update README.md
Verified signature4ce1b07 -
Update README.md
Verified signaturedc8f587 -
Update README.md
Verified signature09453ad -
Update README.md
Verified signature159de89 -
Update README.md
Verified signature367bfc5 -
Create README.md
Verified signature3644eb3 -
Upload 9 files
Verified signature164ad38 -
Upload folder using huggingface_hub
Verified signaturef8b22df -
initial commit
Verified signaturea5b37f4