Model reference · open weights

METAGENE-1

Available as managed deployment Embeddings metagene-ai Embeddings 1 variants 1k dl/mo

METAGENE-1 is an open-weight embedding model from metagene-ai. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released bymetagene-ai
TypeEmbedding models
TaskEmbeddings
Parameters (lead)6.5B
Context512 tokens
Runs withtransformers
Released2024-12-29
Popularity1k downloads / month
LicenceOpen weights

About

What METAGENE-1 is

Model Overview

METAGENE-1 is a 7B parameter metagenomic foundation model designed for pandemic monitoring, trained on over 1.5T base pairs of DNA and RNA sequenced from wastewater. It is presented in the paper METAGENE-1: Metagenomic Foundation Model for Pandemic Monitoring.

https://metagene.ai

Read the full model card

METAGENE-1 is a 7-billion-parameter autoregressive transformer language model, which we refer to as a metagenomic foundation model, that was trained on a novel corpus of diverse metagenomic DNA and RNA sequences comprising over 1.5 trillion base pairs. This dataset is sourced from a large collection of human wastewater samples, processed and sequenced using deep metagenomic (next-generation) sequencing methods. Unlike genomic models that focus on individual genomes or curated sets of specific species, the aim of METAGENE-1 is to capture the full distribution of genomic information present across the human microbiome. After pretraining, this model is designed to aid in tasks in the areas of biosurveillance, pandemic monitoring, and pathogen detection.

We carry out byte-pair encoding (BPE) tokenization on our dataset, tailored for metagenomic sequences, and then pretrain our model. We detail the pretraining data, tokenization strategy, and model architecture, highlighting the considerations and design choices that enable the effective modeling of metagenomic data, in our technical report.

Usage

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("metagene-ai/METAGENE-1")
model = AutoModelForCausalLM.from_pretrained("metagene-ai/METAGENE-1", torch_dtype=torch.bfloat16, device_map="auto")

# Example input sequence
input_sequence = "TCACCGTTCTACAATCCCAAGCTGGAGTCAAGCTCAACAGGGTCTTC"

# Tokenize the input sequence and remove the [EOS] token for generation
input_tokens = tokenizer.encode(input_sequence, return_tensors="pt", add_special_tokens=False).to(model.device)

# Generate output from the model
generated_tokens = model.generate(input_tokens, max_length=32)

# Decode the generated output and clean up the result
generated_sequence = tokenizer.decode(generated_tokens[0], skip_special_tokens=True)
generated_sequence = generated_sequence.replace(" ", "").replace("_", "")

# Generated output: A Hexamita inflata 5.8S ribosomal RNA gene sequence
print(f"🔬 Generated Sequence:\n{generated_sequence}")
# TCACCGTTCTACAATCCCAAGCTGGAGTCAAGCTCAACAGGGTCTTCTTGCCCCGCTGAGGGTTACACTCGCCCGTTCCCGAGTCTGTGGTTTCGCGAAGATATGACCAGGGACAGTAAGAACC

Benchmark Performance

We evaluate METAGENE-1 across three tasks: pathogen detection, zero-shot embedding benchmarks (Gene-MTEB), and genome understanding (GUE), achieving state-of-the-art performance on most benchmarks. For more details, check out our paper.

Pathogen Detection

The pathogen detection benchmark evaluates METAGENE-1’s ability to classify sequencing reads as human pathogens or non-pathogens across four distinct datasets, each derived from different sequencing deliveries and designed to mimic real-world conditions with limited training data.

DNABERT-2DNABERT-SNT-2.5b-MultiNT-2.5b-1000gMETAGENE-1
Pathogen-Detect (avg.)87.9287.0282.4379.0292.96
Pathogen-Detect-186.7385.4383.8077.5292.14
Pathogen-Detect-286.9085.2383.5380.3890.91
Pathogen-Detect-388.3089.0182.4879.8393.70
Pathogen-Detect-489.7788.4179.9178.3795.10

Gene-MTEB

The Gene-MTEB benchmark evaluates METAGENE-1’s ability to produce high-quality, zero-shot genomic representations through eight classification and eight clustering tasks.

DNABERT-2DNABERT-SNT-2.5b-MultiNT-2.5b-1000gMETAGENE-1
Human-Virus (avg.)0.5640.5700.6750.7100.775
Human-Virus-10.5940.6050.6710.7210.828
Human-Virus-20.5070.5100.6520.6240.742
Human-Virus-30.6060.6120.7580.7400.835
Human-Virus-40.5500.5510.6200.7550.697
HMPD (avg.)0.3970.4030.4490.4510.465
HMPD-single0.2920.2930.2850.2920.297
HMPD-disease0.4800.4860.4980.4890.542
HMPD-sex0.3660.3670.4870.4760.495
HMPD-source0.4510.4650.5230.5450.526
HVR (avg.)0.4790.4790.5460.5240.550
HVR-p2p0.5480.5500.559

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys metagene-1 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (metagene-1 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"metagene-1","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms