Primeomicx/nfcore-laya-decisions
Viewer • Updated • 6.08k • 21
Laya-NFCore-v2 is an ultra-fast, sub-180ms decision and routing engine fine-tuned for Nextflow DSL2 and the nf-core bioinformatics ecosystem.
Built on ModernBERT (395M) and a calibrated 26.5M parameter decision head, it functions as the System 1 (Rapid Reflex) engine for AI bioinformaticians and pair-programmers (such as Codaris), executing split-second routing, candidate tool retrieval across 2,153 modules, and runtime error triage before handing off to generative LLMs (Claude / GPT-4o) for channel wiring and code synthesis.
from laya.agent import Agent
# Initialize Laya agent directly from Hugging Face Hub
agent = Agent("Primeomicx/laya-nextflow-nfcore", device="cpu")
# Example 1: Instant Exit Code Diagnosis
error_state = {
"log": "Process `NFCORE_RNASEQ:RNASEQ:STAR` terminated with exit status 137. Linux OOM-killer invoked."
}
question = {
"diag": {
"type": "choice",
"instructions": "Diagnose the primary cause of this task failure.",
"criteria": ["out_of_memory", "walltime_timeout", "command_missing", "file_not_found", "container_failure"]
}
}
response = agent.predict(error_state, question)
print(response["answers"]["diag"])
# {'type': 'choice', 'choice': 'out_of_memory', 'confidence': 0.98}
# Example 2: Specialized Tool Selection for Novel Steps
step_state = {
"step": "Deep learning cellular and nuclear boundary segmentation from CODEX multi-channel microscopy images."
}
q_tool = {
"tool": {
"type": "choice",
"instructions": "Select the most appropriate tool.",
"criteria": {
"cellpose": "Deep learning algorithm for cellular and nuclear segmentation",
"star": "RNA-seq splice-aware aligner",
"gatk4": "Genome Analysis Toolkit for variant discovery",
"fastqc": "Quality control tool for sequencing data"
}
}
}
res = agent.predict(step_state, q_tool)
print(res["answers"]["tool"])
# {'type': 'choice', 'choice': 'cellpose', 'confidence': 0.95}
convaiinnovations/laya (ModernBERT backbone)laya-nfcore-v1-93acc/ $\leftrightarrow$ _), and topic/keyword fusion.