加载中…
加载中…
nf-pilot (Primeomicx/nf-pilot)nf-pilot is an ultra-fast, local System-1 Decision Engine fine-tuned on ModernBERT-Large specifically for the Nextflow and nf-core bioinformatics ecosystem.
Built to act as an autonomous co-pilot inside pipeline synthesis environments (like Codaris), nf-pilot instantly resolves structural and architectural decisions across 2,150+ BioContainers and modules—without burning frontier LLM tokens or introducing API latency.
nf-pilot Doesquay.io/biocontainers images and pinned nf-core modules.BAM_SORT_STATS_SAMTOOLS, FASTQ_ALIGN_STAR).meta.id, strandedness, fastq paths), outperforming generalist frontier LLMs.tuple val(meta), path(reads)), publishDir policies, and dynamic retry directives.Evaluated head-to-head across 40 realistic Nextflow architecture tasks:
| Evaluation Pillar (10 items each) | Legacy v2 | v3 | nf-pilot v5 (System 1) |
Frontier LLM (System 2) | Hybrid (nf-pilot + LLM) |
|---|---|---|---|---|---|
| Container Image Resolution | 100.0% (10/10) | 100.0% (10/10) | 100.0% (10/10) | 100.0% (10/10) | 100.0% (10/10) |
| Subworkflow Packaging | 20.0% (2/10) | 60.0% (6/10) | 100.0% (10/10) | 80.0% (8/10) | 100.0% (10/10) |
| QC Read Adaptation | 30.0% (3/10) | 70.0% (7/10) | 100.0% (10/10) | 100.0% (10/10) | 100.0% (10/10) |
| Samplesheet Schema Inference | 20.0% (2/10) | 50.0% (5/10) | 100.0% (10/10) | 40.0% (4/10) | 100.0% (10/10) |
| OVERALL ACCURACY | 42.5% (17/40) | 70.0% (28/40) | 100.0% (40/40) | 80.0% (32/40) | 100.0% (40/40) |
| Avg Latency | 640 ms | 596 ms | 175 ms (CPU) / ~18 ms (GPU) | 2,018 ms | 2,193 ms |
| Tokens Consumed | 0 tokens | 0 tokens | 0 tokens | 5,433 tokens | 0 tokens (fast-routed) |
Stress-tested on 5 completely unseen, complex next-gen pipelines outside the training, testing, and validation splits across 8 decision categories (40 decisions total):
dorado-m6a-polya-nf (Nanopore direct-RNA modification & poly-A tail estimation): 8/8 (100.0%)spatial-stereoseq-hd-nf (High-definition sub-cellular spatial transcriptomics): 8/8 (100.0%)liquid-biopsy-mrd-duplex-nf (Ultra-deep duplex sequencing for minimal residual disease): 8/8 (100.0%)sc-cutntag-multiome-nf (Single-cell CUT&Tag chromatin profiling): 7/8 (87.5%)crispr-pooled-screen-nf (Pooled dual-guide CRISPR knockout/activation screening): 8/8 (100.0%)pip install laya
from laya.agent import Agent
# Loads weights directly from Hugging Face Hub: Primeomicx/nf-pilot
pilot = Agent("Primeomicx/nf-pilot")
state = {
"assay": "Direct RNA sequencing on Oxford Nanopore PromethION",
"tool": "FastQC",
"read_type": "long_reads_direct_rna"
}
question = {
"type": "choice",
"instructions": "How should QC step FastQC be configured given sequencing characteristics: long_reads_direct_rna?",
"criteria": {
"Keep FastQC": None,
"Drop FastQC": None,
"Swap for NanoPlot": None
}
}
decision = pilot.predict(state, {"decision": question})
print(decision["answers"]["decision"]["choice"])
# Output: "Swap for NanoPlot" (confidence: 94.2%)
state = {
"field_name": "strandedness",
"datatype": "categorical",
"description": "Strandedness of RNA-seq library"
}
question = {
"type": "choice",
"instructions": "Determine JSON schema validation constraint for field strandedness:",
"criteria": {
"enum: [auto, unstranded, forward, reverse]": None,
"pattern: ^[0-9]+$": None,
"format: file-path": None
}
}
decision = pilot.predict(state, {"decision": question})
print(decision["answers"]["decision"]["choice"])
# Output: "enum: [auto, unstranded, forward, reverse]" (confidence: 98.4%)
float16 accelerated via Apple Silicon Metal Performance Shaders (mps)