Instructions to use andyz321/bio-expert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use andyz321/bio-expert with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf andyz321/bio-expert:Q8_0 # Run inference directly in the terminal: llama cli -hf andyz321/bio-expert:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf andyz321/bio-expert:Q8_0 # Run inference directly in the terminal: llama cli -hf andyz321/bio-expert:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf andyz321/bio-expert:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf andyz321/bio-expert:Q8_0
Use Docker
docker model run hf.co/andyz321/bio-expert:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use andyz321/bio-expert with Ollama:
ollama run hf.co/andyz321/bio-expert:Q8_0
- Unsloth Desktop
- Pi
How to use andyz321/bio-expert with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyz321/bio-expert:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "andyz321/bio-expert:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use andyz321/bio-expert with Docker Model Runner:
docker model run hf.co/andyz321/bio-expert:Q8_0
- Lemonade
How to use andyz321/bio-expert with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull andyz321/bio-expert:Q8_0
Run and chat with the model
lemonade run user.bio-expert-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use andyz321/bio-expert with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyz321/bio-expert:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default andyz321/bio-expert:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use andyz321/bio-expert with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyz321/bio-expert:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "andyz321/bio-expert:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
|
Download README.md from andyz321/bio-expert: direct link, hf CLI and curl.
- Browser
- Download file 6.48 kB
-
https://huggingface.co/andyz321/bio-expert/resolve/main/README.md
- Command line
-
hf download hf://andyz321/bio-expert/README.md
-
curl -L -o README.md https://huggingface.co/andyz321/bio-expert/resolve/main/README.md
6.48 kB
| # bio-expert β Domain Expert Model for Bioinformatics & Synthetic Biology | |
| **Base:** Qwen3-8B (base) Β· **Method:** domain-data distillation + QLoRA Β· **Hardware:** 1 Γ RTX 3080 Laptop 16GB, fully local | |
| A 8B domain-specific model built through domain-data distillation and QLoRA fine-tuning, covering three areas: **bioinformatics analysis**, **synthetic biology strain construction**, and **bioinformatics-informed biomedicine**. | |
| It does two things over a general-purpose model that it was explicitly trained for: **knowing who it is**, and **ending every answer with a follow-up question genuinely worth asking**. | |
| δΈζηθ―΄ζθ§ [`README_zh.md`](README_zh.md)γ | |
| --- | |
| ## What it covers | |
| - **Bioinformatics analysis** β the full chain from QC to interpretation: alignment, annotation, quantification, differential expression, enrichment, single-cell, and metagenomics. It gives tool names, parameter ranges, and thresholds, not just concepts. | |
| - **Synthetic biology strain construction** β chassis selection, vector and part design, assembly methods, CRISPR knockout editing, metabolic pathway design and titer optimization, including the mechanism and failure-troubleshooting order at each step. | |
| - **Bioinformatics-informed biomedicine** β GWAS / eQTL, cancer genomics, clinical variant interpretation (ACMG), liquid-biopsy ctDNA, multi-omics integration, and single-cell applications in oncology and immunology. | |
| --- | |
| ## Files in this repo | |
| | Path | What it is | | |
| |---|---| | |
| | `bio-expert-Qwen3-8B-Q8_0.gguf` | **The model.** Merged bf16 β GGUF q8_0, 8.11 GB, 32K context, ready for `ollama` / `llama.cpp` | | |
| | `adapter/` | The QLoRA adapter (r=32, 4bit NF4) it was merged from β use this to reproduce the merge | | |
| | `Modelfile` | The ollama definition: `FROM`, `SYSTEM`, parameters | | |
| | `system_prompt.txt` | The exact system prompt (identical to `scripts/prompt.py`) | | |
| | `scripts/` | Training, merging, evaluation and data-generation scripts | | |
| | `data/` | The 759-sample SFT corpus (555 domain + 204 identity / curiosity) | | |
| | `eval_results.json` | Raw output of the 25-question evaluation | | |
| ### Use it with ollama | |
| ```bash | |
| # Modelfile already points at the GGUF in this repo | |
| ollama create bio-expert -f Modelfile | |
| ollama run bio-expert | |
| ``` | |
| ### Use the adapter with PEFT | |
| ```python | |
| from peft import PeftModel | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", torch_dtype="bfloat16", device_map="auto") | |
| model = PeftModel.from_pretrained(base, "adapter") | |
| model = model.merge_and_unload() | |
| ``` | |
| --- | |
| ## How it was trained | |
| | Stage | Approach | | |
| |---|---| | |
| | Seeds | 130 hand-curated real task topics | | |
| | Distillation | DeepSeek V4 Flash teacher model expanded into Q&A with mechanistic reasoning, concrete parameters, and tool names | | |
| | Corpus | 759 samples (555 domain + 204 identity / curiosity) | | |
| | Fine-tuning | Unsloth QLoRA, 4bit NF4, LoRA r=32, loss 3.16 β 1.30, peak VRAM 8.0 GB | | |
| | Merge & quantize | merged bf16 15.3 GB β GGUF q8_0 8.11 GB, 32K context | | |
| Corpus preparation, training, evaluation and quantization all ran on a single machine β neither the weights nor your conversations ever leave it. | |
| ### Reproduce | |
| ```bash | |
| pip install unsloth trl peft transformers | |
| python scripts/train_round2.py --stage 3 --epochs 1.3 --init-adapter <round2 adapter> | |
| python scripts/merge.py --adapter <checkpoint> --out <merged dir> | |
| python scripts/write_modelfile.py | |
| python scripts/eval_round2.py --adapter <checkpoint> --out eval_results.json | |
| ``` | |
| --- | |
| ## The two trained behaviors | |
| ### Identity | |
| The model knows who it is, what it is built on, and where its competence ends. These are **hand-written ground truth**, not something left for the model to invent β identity is a fact the company defines, not a topic for free-form improvisation. Every identity answer carries an explicit boundary statement so the model never overstates its own abilities. | |
| ### Curiosity (an observable behavior, not a persona prompt) | |
| The instruction side of the curiosity corpus uses the bare questions real users actually ask, and the system prompt carries one global rule: when the answer touches a mechanism, an open problem, or a research direction worth extending, close with a question that genuinely advances understanding. Answers then break into three layers on their own: surface mechanism β the deeper reason behind it β why it is this way rather than an alternative. | |
| > The trap we hit: the training instruction originally read "go deeper on this question and tell me what you'd want to ask next: <topic>". What the model learned was not curiosity but *recognizing that specific prefix* β change the phrasing and it stopped asking. The fix was not more data but **changing the training distribution itself**: bare topics as instructions, with a global rule in the system prompt as the safety net. | |
| --- | |
| ## Measured evaluation | |
| 25 questions with reverse probes (to catch "answered backwards but still scored") and synonym groups: | |
| | Dimension | Result | | |
| |---|---| | |
| | **Overall pass rate** | **24 / 25 = 96%** | | |
| | Identity | 8 / 8 = 100% | | |
| | Domain ability, no regression | 5 / 5 = 100% | | |
| | Curiosity question chain | 11 / 12 = 92% | | |
| | **Proactive follow-up at the end of answers** | **12 / 12 = 100%** | | |
| --- | |
| ## Boundaries (read this first) | |
| - **No internet access.** It cannot look up NCBI / UniProt / PDB live β verify accessions, PMIDs and database versions yourself. | |
| - **No wet-lab work.** Everything it outputs is computational guidance. | |
| - **It does not replace clinical judgment.** | |
| - **Weaker than general models on general knowledge.** For general trivia, long-form writing and math, use a larger general-purpose model. This model only leads inside its three domains. | |
| - The evaluation is a self-built 25-question set. It is small, and **does not mean it beats a general model on arbitrary tasks.** | |
| --- | |
| ## Built-in parameters | |
| `num_ctx 32768` Β· `temperature 0.7` Β· `top_p 0.9` Β· `repeat_penalty 1.1` | |
| As an agent model it has been verified to return correct tool calls under a 10kβ29k token system prompt with tool definitions. | |
| --- | |
| ## License | |
| The base model **Qwen3-8B** is licensed under **Apache-2.0**. The fine-tuned weights in this model are Β© εζηη© HeYao Bio and are released under the same Apache-2.0 terms. | |
| --- | |
| **HeYao Bio εζηη© Β· AI + Life Science** | |
| Every number on this page comes from locally measured training and evaluation logs. | |