Text Generation
MLX
Safetensors
English
gemma4_text
mlx-lm
apple-silicon
macos
cellgemma
gemma4
biology
single-cell
transcriptomics
gene-expression
perturbation-prediction
crispr
bf16
Run this model with HF Jobs
Run bsisduck/cellgemma-e4b-mlx-bf16 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-bf16. 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-bf16 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-bf16. 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.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/bsisduck/cellgemma-e4b-mlx-bf16. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use bsisduck/cellgemma-e4b-mlx-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use bsisduck/cellgemma-e4b-mlx-bf16 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-bf16") 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-bf16 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-bf16" --prompt "Once upon a time"
- Atomic Chat
File size: 1,471 Bytes
441409e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | {
"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": {
"tensors_identical": 665
},
"prompt_tokens": 4128,
"generated_tokens": 128,
"recognized_up": 32,
"recognized_down": 32,
"sample_output": "+HSPA5 -MDM2 +AREG -CA12 +HSP90AA1 -SMAD3 +HSP90B1 -SERPINE1 +ARL6IP1 -PTPRJ +DHRS2 -FNDC3B +H3-3B -NDRG1 +CALM1 -GRB10 +EXT1 -SOD2 +ACTG1 -SPTBN1 +H1-0 -GBE1 +ARHGAP26 -PDE4D +HSPA8 -CHD2 +ZSWIM6 -PTPRJ +JPT1 -AKT3 +PABPC1 -PTK2 +ALDOA -USP3 +CALM2 -KYNU +EGR1 -PARD3 +MYH9 -NRIP1 +SPTAN1 -MET +CRISPLD2 -NPEPPS +CALR -FMNL2 +PDIA4 -TRPM7 +SAT1 -ITGB1 +RPS5 -SLC41A2 +NOLC1 -MSI2 +MT2A -NBAS +RRM2 -RICTOR +EEF2 -CBLB +COTL1 -KANSL1 +MLEC -RAB1A",
"peak_memory_gb": 16.357567768,
"generation_tokens_per_second": 9.827517911315836,
"seconds": 251.12,
"limitations": "128-token technical smoke test; truncated output. Not a biological benchmark or quality equivalence claim."
}
|