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 scripts/write_modelfile.py from andyz321/bio-expert: direct link, hf CLI and curl.
- Browser
- Download file 2.77 kB
-
https://huggingface.co/andyz321/bio-expert/resolve/main/scripts/write_modelfile.py
- Command line
-
hf download hf://andyz321/bio-expert/scripts/write_modelfile.py
-
curl -L -o write_modelfile.py https://huggingface.co/andyz321/bio-expert/resolve/main/scripts/write_modelfile.py
2.77 kB
| # -*- coding: utf-8 -*- | |
| """Write Modelfile as UTF-8 without BOM (PS 5.1 Set-Content corrupts CJK). | |
| Single source of truth for the ollama model definition. | |
| ollama 0.40 has no `DESCRIPTION` Modelfile command (only: from, license, | |
| template, system, adapter, draft, renderer, parser, parameter, message, | |
| requires, capability). The manifest's only free-text slot is the | |
| `ollama.image.license` layer, so --license-mode decides what goes in it: | |
| apache : license text only -> Modelfile | |
| card : full model card -> Modelfile.card | |
| Usage: | |
| py -3 scripts/write_modelfile.py [--license-mode apache|card] | |
| """ | |
| import argparse | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(r"E:\AI edge\bio-enhance") | |
| sys.path.insert(0, str(ROOT / "scripts")) | |
| from prompt import SYSTEM_PROMPT # noqa: E402 | |
| Q = '"' * 3 | |
| # Preferred GGUF (round3 / r3). It may be a symlink into a detached volume, | |
| # so fall back to the byte-identical blob in the ollama blob store. | |
| CANDIDATES = [ | |
| ROOT / "output" / "bio-expert-q8-r3.gguf", | |
| Path(r"D:\ollama_data\blobs\sha256-569155cf3edc5c144201fb78352380dfa9a6b3904c4609bb48ade1a16c7920bd"), | |
| ] | |
| APACHE = "Apache-2.0" | |
| def pick_gguf(): | |
| for c in CANDIDATES: | |
| try: | |
| if c.exists() and c.stat().st_size > 1_000_000_000: | |
| with open(c, "rb") as fh: | |
| if fh.read(4) == b"GGUF": | |
| return c | |
| except OSError: | |
| continue | |
| raise SystemExit("no usable GGUF found in: " | |
| + ", ".join(str(c) for c in CANDIDATES)) | |
| def build(gguf, license_text, out_path): | |
| card = (ROOT / "model_card.md").read_text(encoding="utf-8").strip() | |
| mf = "\n".join([ | |
| "FROM " + str(gguf), | |
| "", | |
| "SYSTEM " + Q + SYSTEM_PROMPT + Q, | |
| "", | |
| "LICENSE " + Q + license_text + Q, | |
| "", | |
| "PARAMETER temperature 0.7", | |
| "PARAMETER top_p 0.9", | |
| "PARAMETER num_ctx 32768", | |
| "PARAMETER repeat_penalty 1.1", | |
| "", | |
| ]) | |
| out_path.write_text(mf, encoding="utf-8") # no BOM | |
| raw = out_path.read_bytes() | |
| print(f"wrote {out_path}") | |
| print(" bytes:", len(raw), " BOM:", raw[:3] == b"\xef\xbb\xbf") | |
| print(" FROM:", gguf) | |
| print(" license chars:", len(license_text)) | |
| print(" CJK ok:", "合曜生物" in raw.decode("utf-8")) | |
| return card | |
| if __name__ == "__main__": | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("--license-mode", choices=["apache", "card"], default="apache") | |
| args = ap.parse_args() | |
| gguf = pick_gguf() | |
| card = (ROOT / "model_card.md").read_text(encoding="utf-8").strip() | |
| if args.license_mode == "card": | |
| build(gguf, card, ROOT / "Modelfile.card") | |
| else: | |
| build(gguf, APACHE, ROOT / "Modelfile") | |