Text Generation
MLX
Safetensors
English
gemma4_text
mlx-lm
apple-silicon
macos
cellgemma
gemma4
biology
single-cell
transcriptomics
gene-expression
perturbation-prediction
crispr
4-bit precision
Run this model with HF Jobs
Run bsisduck/cellgemma-e4b-mlx-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/bsisduck/cellgemma-e4b-mlx-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bsisduck/cellgemma-e4b-mlx-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/bsisduck/cellgemma-e4b-mlx-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use bsisduck/cellgemma-e4b-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use bsisduck/cellgemma-e4b-mlx-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("bsisduck/cellgemma-e4b-mlx-4bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use bsisduck/cellgemma-e4b-mlx-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "bsisduck/cellgemma-e4b-mlx-4bit" --prompt "Once upon a time"
- Atomic Chat
Download validation.json from bsisduck/cellgemma-e4b-mlx-4bit: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/bsisduck/cellgemma-e4b-mlx-4bit/resolve/main/validation.json
- Command line
-
hf download hf://bsisduck/cellgemma-e4b-mlx-4bit/validation.json
-
curl -L -o validation.json https://huggingface.co/bsisduck/cellgemma-e4b-mlx-4bit/resolve/main/validation.json
1.44 kB
| { | |
| "status": "passed", | |
| "source_revision": "6212145e0131d3744171739ea5232afc6aaa7c76", | |
| "decoder_max_abs_error_by_dataset": { | |
| "dong": 3.516674041748047e-06, | |
| "emeraldbay": 7.450580596923828e-07, | |
| "hepg2": 1.2218952178955078e-06, | |
| "jurkat": 1.4156103134155273e-07, | |
| "k562": 5.364418029785156e-07, | |
| "l1000": 1.9073486328125e-06, | |
| "norman": 4.172325134277344e-07, | |
| "parse": 5.662441253662109e-06, | |
| "rpe1": 5.662441253662109e-07, | |
| "sciplex": 4.6938657760620117e-07, | |
| "tahoe": 3.8743019104003906e-07, | |
| "tisch": 9.238719940185547e-07, | |
| "vcc": 7.096678018569946e-07 | |
| }, | |
| "bf16_tensor_check": null, | |
| "prompt_tokens": 4128, | |
| "generated_tokens": 128, | |
| "recognized_up": 32, | |
| "recognized_down": 32, | |
| "sample_output": "+HSPA5 -MDM2 +AREG -SERPINE1 +HSP90AA1 -CA12 +HSP90B1 -FNDC3B +ARL6IP1 -SMAD3 +H1-0 -PTPRJ +H3-3B -GBE1 +JPT1 -GRB10 +EXT1 -SOD2 +ACTG1 -SPTBN1 +DHRS2 -ANXA2 +SAT1 -PDE4D +PABPC1 -NDRG1 +ZSWIM6 -PTK2 +CALM1 -AKT3 +CRISPLD2 -USP34 +ALDOA -CD44 +TYW1B -KYNU +RPS5 -TRPM7 +MYH9 -NRIP1 +EGR1 -ITSN2 +TFPI2 -CHD2 +CALR -KANSL1 +TPM3 -PARD3 +COTL1 -ITGB1 +PLEC -IGFBP3 +SPTAN1 -STRN3 +YWHAB -CBLB +TOP2A -USP3 +EEF2 -BIRC6 +CALM2 -SLC41A2 +RPL35 -USP9Y", | |
| "peak_memory_gb": 5.361773848, | |
| "generation_tokens_per_second": 46.5153647462564, | |
| "seconds": 31.62, | |
| "limitations": "128-token technical smoke test; truncated output. Not a biological benchmark or quality equivalence claim." | |
| } | |