Text Generation
Transformers
Safetensors
English
qwen3_moe
biology
experimental-design
simulation
conversational
Instructions to use EdisonScientific/Ibis0-BED-Simulator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EdisonScientific/Ibis0-BED-Simulator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EdisonScientific/Ibis0-BED-Simulator") 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("EdisonScientific/Ibis0-BED-Simulator") model = AutoModelForCausalLM.from_pretrained("EdisonScientific/Ibis0-BED-Simulator", 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 EdisonScientific/Ibis0-BED-Simulator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EdisonScientific/Ibis0-BED-Simulator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EdisonScientific/Ibis0-BED-Simulator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EdisonScientific/Ibis0-BED-Simulator
- SGLang
How to use EdisonScientific/Ibis0-BED-Simulator 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 "EdisonScientific/Ibis0-BED-Simulator" \ --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": "EdisonScientific/Ibis0-BED-Simulator", "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 "EdisonScientific/Ibis0-BED-Simulator" \ --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": "EdisonScientific/Ibis0-BED-Simulator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EdisonScientific/Ibis0-BED-Simulator with Docker Model Runner:
docker model run hf.co/EdisonScientific/Ibis0-BED-Simulator
Simplify simulator model card
Browse files
README.md
CHANGED
|
@@ -24,15 +24,6 @@ either compelling support for θ′ or a clear null. During experiment selection
|
|
| 24 |
by the belief model's p(θ′ | evidence) to estimate expected information gain. The belief model is
|
| 25 |
[Ibis0-30B-A3B-Classifier](https://huggingface.co/EdisonScientific/Ibis0-30B-A3B-Classifier).
|
| 26 |
|
| 27 |
-
## Training
|
| 28 |
-
|
| 29 |
-
Supervised fine-tuning of Qwen3-30B-A3B (thinking disabled) for 1,200 steps: AdamW, learning rate 1e-5,
|
| 30 |
-
batch size 64, sequence length 12,288, loss on the completion only. The data are 180,000 real
|
| 31 |
-
(experiment, outcome) pairs from the EDB-Bio `v1.0.0` training split (GWAS associations, DepMap CRISPR and
|
| 32 |
-
Tahoe evidence stubs), balanced by valence. Each outcome is labelled by the sign of the weight of evidence
|
| 33 |
-
the classifier assigns it for θ′. No outcome is synthetic. Config:
|
| 34 |
-
`train/multi_meta/sft/bed-simulator/sft-thetaprime.toml`.
|
| 35 |
-
|
| 36 |
## Clone and install ibis0
|
| 37 |
|
| 38 |
The prompt builder and BED scripts below live in the
|
|
@@ -50,16 +41,13 @@ Local GPU inference requires Linux and a CUDA GPU.
|
|
| 50 |
|
| 51 |
## Use
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
`
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
## Evaluation
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
(`scripts/analysis/rq5_bed/validate_simulator.py`).
|
| 63 |
|
| 64 |
## Licence
|
| 65 |
|
|
|
|
| 24 |
by the belief model's p(θ′ | evidence) to estimate expected information gain. The belief model is
|
| 25 |
[Ibis0-30B-A3B-Classifier](https://huggingface.co/EdisonScientific/Ibis0-30B-A3B-Classifier).
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
## Clone and install ibis0
|
| 28 |
|
| 29 |
The prompt builder and BED scripts below live in the
|
|
|
|
| 41 |
|
| 42 |
## Use
|
| 43 |
|
| 44 |
+
[`build_theta_prime_sft.py`](https://github.com/EdisonScientific/ibis0/blob/main/scripts/data_pipeline/build_theta_prime_sft.py)
|
| 45 |
+
builds the simulator's prompts from an experiment, its hypothesis, and the requested outcome type.
|
| 46 |
+
[`bed_thetaprime.py`](https://github.com/EdisonScientific/ibis0/blob/main/scripts/analysis/rq5_bed/bed_thetaprime.py)
|
| 47 |
+
uses the simulator and classifier together to select experiments.
|
|
|
|
|
|
|
| 48 |
|
| 49 |
+
The simulator returns JSON with three fields: `supports_hypothesis` (`"yes"` or `"no"`),
|
| 50 |
+
`weight_of_evidence_decibans`, and `y`, which contains the simulated measurements for the domain.
|
|
|
|
| 51 |
|
| 52 |
## Licence
|
| 53 |
|