Transformers
Safetensors
English
roberta
genomics
population-genetics
axial-attention
self-supervised
natural-selection
haplotype
Run this model with HF Jobs
Run leonzong/popf-ft-selection-CEU 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/leonzong/popf-ft-selection-CEU. 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/leonzong/popf-ft-selection-CEU 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.
Instructions to use leonzong/popf-ft-selection-CEU with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leonzong/popf-ft-selection-CEU with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, PopformerForWindowClassification tokenizer = AutoTokenizer.from_pretrained("leonzong/popf-ft-selection-CEU") model = PopformerForWindowClassification.from_pretrained("leonzong/popf-ft-selection-CEU", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Quick Links
Popformer
An axial attention transformer for haplotype matrices, pre-trained with self-supervised masked haplotype reconstruction.
Paper: Popformer: Learning general signatures of positive selection with a self-supervised transformer
Model Description
Popformer is pre-trained on masked haplotype reconstruction and evaluated on:
- Natural selection detection
- Genotype imputation
- Population classification
Usage
See the repository README for full preprocessing and inference examples, including VCF/HDF5 input and genome-wide selection scans.
Citation
@article{popformer2026,
title = {Popformer: Learning general signatures of positive selection with a self-supervised transformer},
url = {https://www.biorxiv.org/content/10.64898/2026.03.06.710163v1}
}
- Downloads last month
- 8
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, PopformerForWindowClassification tokenizer = AutoTokenizer.from_pretrained("leonzong/popf-ft-selection-CEU") model = PopformerForWindowClassification.from_pretrained("leonzong/popf-ft-selection-CEU", device_map="auto")