LoCUS models: the four paper models and the four pretraining-split models (no chr20/21)
Browse filesFiles changed (13)
- README.md+8-2
- locus-0.5m-no-chr20-21/README.mdAdded+26
- locus-0.5m-no-chr20-21/config.jsonAdded+84
- locus-0.5m-no-chr20-21/model.safetensorsAdded+3
- locus-2m-no-chr20-21/README.mdAdded+26
- locus-2m-no-chr20-21/config.jsonAdded+84
- locus-2m-no-chr20-21/model.safetensorsAdded+3
- twin-bpe-2m-no-chr20-21/README.mdAdded+26
- twin-bpe-2m-no-chr20-21/config.jsonAdded+84
- twin-bpe-2m-no-chr20-21/model.safetensorsAdded+3
- twin-fixed-2m-no-chr20-21/README.mdAdded+26
- twin-fixed-2m-no-chr20-21/config.jsonAdded+84
- twin-fixed-2m-no-chr20-21/model.safetensorsAdded+3
16 unmodified lines17181920212223242516 unmodified lines| `locus-2m/` | LoCUS-2M: width 128, 4 kb context || `twin-fixed-2m/` | Tokenizer study: LoCUS-2M with fixed 10 bp segments every 5 bp || `twin-bpe-2m/` | Tokenizer study: LoCUS-2M with BPE tokens (vocabulary 4,096) as segments |Each folder has `config.json` (the pretraining configuration and step) and `model.safetensors` (the weights). All fourare pretrained on GRCh38 chromosomes 3-22.```pythonimport locus16 unmodified lines17181920212223242526272829303116 unmodified lines| `locus-2m/` | LoCUS-2M: width 128, 4 kb context || `twin-fixed-2m/` | Tokenizer study: LoCUS-2M with fixed 10 bp segments every 5 bp || `twin-bpe-2m/` | Tokenizer study: LoCUS-2M with BPE tokens (vocabulary 4,096) as segments || `locus-0.5m-no-chr20-21/` | Pretraining-split ablation: LoCUS-0.5M pretrained without chromosomes 20 and 21 || `locus-2m-no-chr20-21/` | Pretraining-split ablation: LoCUS-2M pretrained without chromosomes 20 and 21 || `twin-fixed-2m-no-chr20-21/` | Pretraining-split ablation: twin-fixed-2m pretrained without chromosomes 20 and 21 || `twin-bpe-2m-no-chr20-21/` | Pretraining-split ablation: twin-bpe-2m pretrained without chromosomes 20 and 21 (its BPE vocabulary trained on those chromosomes) |Each folder has `config.json` (the pretraining configuration and step), `model.safetensors` (the weights) and a model card.The first four are pretrained on GRCh38 chromosomes 3-22. The four `-no-chr20-21` models are the same models pretrained onchromosomes 1-19 and 22, without the chromosomes of the Nucleotide Transformer benchmark's test sets, everything elseunchanged; the paper uses them to check that seeing the test chromosomes in pretraining does not inflate the test scores.```pythonimport locus
1234567891011121314151617181920212223242526---library_name: locustags:- dna- genomics- locally-consistent-parsing---
# locus-0.5m-no-chr20-21
Pretraining-split ablation: LoCUS-0.5M pretrained without chromosomes 20 and 21 (the NT18 test chromosomes).
- Segments: lcp (level 2)- Width 64, 2 heads, base attention radii [32, 128], 6 segment layers- Pretrained for 359,466 steps on GRCh38 chromosomes 1-19 and 22, crops of 256-4096 bp
## Use
```pythonimport locus
model = locus.load("locus-0.5m-no-chr20-21")vectors = model.embed(["ACGT" * 100])```
Code, fine-tuning recipes and the scripts that reproduce every result of the paper: see the LoCUS repository.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "config": { "model": { "model_dim": 64, "attention_heads": 2, "ffn_dim": 256, "base_attention_radii": [ 32, 128 ], "segment_layers": 6, "base_embedding_dim": 16, "dropout": 0.1, "max_segment_length": 512, "rope_theta": 10000.0, "rope_position_scale": 5.0 }, "data": { "genome_windows": "data/GRCh38.p14.acgt.w4096.s4096", "context_length": 4096, "min_context_length": 256, "crops_per_read": 2, "train_sources": [ "NC_000001.11", "NC_000002.12", "NC_000003.12", "NC_000004.12", "NC_000005.10", "NC_000006.12", "NC_000007.14", "NC_000008.11", "NC_000009.12", "NC_000010.11", "NC_000011.10", "NC_000012.12", "NC_000013.11", "NC_000014.9", "NC_000015.10", "NC_000016.10", "NC_000017.11", "NC_000018.10", "NC_000019.10", "NC_000022.11" ], "validation_sources": [], "test_sources": [ "NC_000020.11", "NC_000021.9" ], "target_margin": 32, "mask_probability": 0.15, "mask_replacement_probability": 0.8, "random_replacement_probability": 0.1, "segmenter": "lcp", "lcp_level": 2, "lcp_library": "build/lcptools/lib/liblcptools.so", "fixed_length": 10, "fixed_stride": 5, "bpe_tokenizer": "data/tokenizers/bpe-4096.json", "example_workers": 3 }, "training": { "run_name": "locus-0.5m-no-chr20-21", "seed": 42, "batch_size": 16, "max_steps": 359466, "learning_rate": 0.0006, "warmup_steps": 3600, "weight_decay": 0.01, "adam_beta1": 0.9, "adam_beta2": 0.98, "adam_epsilon": 1e-06, "gradient_clip_norm": 1.0, "shuffle_buffer_size": 512, "mixed_precision": true, "device": "cuda", "log_every": 10, "checkpoint_every": 1000, "keep_checkpoint_every": 10000, "keep_checkpoint_steps": [] } }, "step": 359466}123version https://git-lfs.github.com/spec/v1oid sha256:454eed66505ce9a40eac2199ce0c529f8bb8e0e0b3eda9939ab2af811161d44asize 18978641234567891011121314151617181920212223242526---library_name: locustags:- dna- genomics- locally-consistent-parsing---
# locus-2m-no-chr20-21
Pretraining-split ablation: LoCUS-2M pretrained without chromosomes 20 and 21 (the NT18 test chromosomes).
- Segments: lcp (level 2)- Width 128, 4 heads, base attention radii [32, 128], 6 segment layers- Pretrained for 359,466 steps on GRCh38 chromosomes 1-19 and 22, crops of 256-4096 bp
## Use
```pythonimport locus
model = locus.load("locus-2m-no-chr20-21")vectors = model.embed(["ACGT" * 100])```
Code, fine-tuning recipes and the scripts that reproduce every result of the paper: see the LoCUS repository.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "config": { "model": { "model_dim": 128, "attention_heads": 4, "ffn_dim": 512, "base_attention_radii": [ 32, 128 ], "segment_layers": 6, "base_embedding_dim": 16, "dropout": 0.1, "max_segment_length": 512, "rope_theta": 10000.0, "rope_position_scale": 5.0 }, "data": { "genome_windows": "data/GRCh38.p14.acgt.w4096.s4096", "context_length": 4096, "min_context_length": 256, "crops_per_read": 2, "train_sources": [ "NC_000001.11", "NC_000002.12", "NC_000003.12", "NC_000004.12", "NC_000005.10", "NC_000006.12", "NC_000007.14", "NC_000008.11", "NC_000009.12", "NC_000010.11", "NC_000011.10", "NC_000012.12", "NC_000013.11", "NC_000014.9", "NC_000015.10", "NC_000016.10", "NC_000017.11", "NC_000018.10", "NC_000019.10", "NC_000022.11" ], "validation_sources": [], "test_sources": [ "NC_000020.11", "NC_000021.9" ], "target_margin": 32, "mask_probability": 0.15, "mask_replacement_probability": 0.8, "random_replacement_probability": 0.1, "segmenter": "lcp", "lcp_level": 2, "lcp_library": "build/lcptools/lib/liblcptools.so", "fixed_length": 10, "fixed_stride": 5, "bpe_tokenizer": "data/tokenizers/bpe-4096.json", "example_workers": 3 }, "training": { "run_name": "locus-2m-no-chr20-21", "seed": 42, "batch_size": 16, "max_steps": 359466, "learning_rate": 0.0006, "warmup_steps": 3600, "weight_decay": 0.01, "adam_beta1": 0.9, "adam_beta2": 0.98, "adam_epsilon": 1e-06, "gradient_clip_norm": 1.0, "shuffle_buffer_size": 512, "mixed_precision": true, "device": "cuda", "log_every": 10, "checkpoint_every": 1000, "keep_checkpoint_every": 10000, "keep_checkpoint_steps": [] } }, "step": 359466}123version https://git-lfs.github.com/spec/v1oid sha256:ccd2c6d71be96579b5d8ba5810dd4e2bee28935eb58e010de6867f14bb91994fsize 69622561234567891011121314151617181920212223242526---library_name: locustags:- dna- genomics- locally-consistent-parsing---
# twin-bpe-2m-no-chr20-21
Pretraining-split ablation: twin-bpe-2m pretrained without chromosomes 20 and 21, with a BPE vocabulary trained on its own pretraining chromosomes.
- Segments: bpe- Width 128, 4 heads, base attention radii [32, 128], 6 segment layers- Pretrained for 359,466 steps on GRCh38 chromosomes 1-19 and 22, crops of 256-4096 bp
## Use
```pythonimport locus
model = locus.load("twin-bpe-2m-no-chr20-21")vectors = model.embed(["ACGT" * 100])```
Code, fine-tuning recipes and the scripts that reproduce every result of the paper: see the LoCUS repository.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "config": { "model": { "model_dim": 128, "attention_heads": 4, "ffn_dim": 512, "base_attention_radii": [ 32, 128 ], "segment_layers": 6, "base_embedding_dim": 16, "dropout": 0.1, "max_segment_length": 512, "rope_theta": 10000.0, "rope_position_scale": 5.0 }, "data": { "genome_windows": "data/GRCh38.p14.acgt.w4096.s4096", "context_length": 4096, "min_context_length": 256, "crops_per_read": 2, "train_sources": [ "NC_000001.11", "NC_000002.12", "NC_000003.12", "NC_000004.12", "NC_000005.10", "NC_000006.12", "NC_000007.14", "NC_000008.11", "NC_000009.12", "NC_000010.11", "NC_000011.10", "NC_000012.12", "NC_000013.11", "NC_000014.9", "NC_000015.10", "NC_000016.10", "NC_000017.11", "NC_000018.10", "NC_000019.10", "NC_000022.11" ], "validation_sources": [], "test_sources": [ "NC_000020.11", "NC_000021.9" ], "target_margin": 32, "mask_probability": 0.15, "mask_replacement_probability": 0.8, "random_replacement_probability": 0.1, "segmenter": "bpe", "lcp_level": 2, "lcp_library": "build/lcptools/lib/liblcptools.so", "fixed_length": 10, "fixed_stride": 5, "bpe_tokenizer": "data/tokenizers/bpe-4096-1gb-seed42-no-chr20-21.json", "example_workers": 3 }, "training": { "run_name": "twin-bpe-2m-no-chr20-21", "seed": 42, "batch_size": 16, "max_steps": 359466, "learning_rate": 0.0006, "warmup_steps": 3600, "weight_decay": 0.01, "adam_beta1": 0.9, "adam_beta2": 0.98, "adam_epsilon": 1e-06, "gradient_clip_norm": 1.0, "shuffle_buffer_size": 512, "mixed_precision": true, "device": "cuda", "log_every": 10, "checkpoint_every": 1000, "keep_checkpoint_every": 10000, "keep_checkpoint_steps": [] } }, "step": 359466}123version https://git-lfs.github.com/spec/v1oid sha256:60c0b45139c7e65fd02a12a50301656925c4496cac988a7454d207513001330fsize 69622561234567891011121314151617181920212223242526---library_name: locustags:- dna- genomics- locally-consistent-parsing---
# twin-fixed-2m-no-chr20-21
Pretraining-split ablation: twin-fixed-2m pretrained without chromosomes 20 and 21.
- Segments: fixed- Width 128, 4 heads, base attention radii [32, 128], 6 segment layers- Pretrained for 359,466 steps on GRCh38 chromosomes 1-19 and 22, crops of 256-4096 bp
## Use
```pythonimport locus
model = locus.load("twin-fixed-2m-no-chr20-21")vectors = model.embed(["ACGT" * 100])```
Code, fine-tuning recipes and the scripts that reproduce every result of the paper: see the LoCUS repository.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "config": { "model": { "model_dim": 128, "attention_heads": 4, "ffn_dim": 512, "base_attention_radii": [ 32, 128 ], "segment_layers": 6, "base_embedding_dim": 16, "dropout": 0.1, "max_segment_length": 512, "rope_theta": 10000.0, "rope_position_scale": 5.0 }, "data": { "genome_windows": "data/GRCh38.p14.acgt.w4096.s4096", "context_length": 4096, "min_context_length": 256, "crops_per_read": 2, "train_sources": [ "NC_000001.11", "NC_000002.12", "NC_000003.12", "NC_000004.12", "NC_000005.10", "NC_000006.12", "NC_000007.14", "NC_000008.11", "NC_000009.12", "NC_000010.11", "NC_000011.10", "NC_000012.12", "NC_000013.11", "NC_000014.9", "NC_000015.10", "NC_000016.10", "NC_000017.11", "NC_000018.10", "NC_000019.10", "NC_000022.11" ], "validation_sources": [], "test_sources": [ "NC_000020.11", "NC_000021.9" ], "target_margin": 32, "mask_probability": 0.15, "mask_replacement_probability": 0.8, "random_replacement_probability": 0.1, "segmenter": "fixed", "lcp_level": 2, "lcp_library": "build/lcptools/lib/liblcptools.so", "fixed_length": 10, "fixed_stride": 5, "bpe_tokenizer": "data/tokenizers/bpe-4096.json", "example_workers": 3 }, "training": { "run_name": "twin-fixed-2m-no-chr20-21", "seed": 42, "batch_size": 16, "max_steps": 359466, "learning_rate": 0.0006, "warmup_steps": 3600, "weight_decay": 0.01, "adam_beta1": 0.9, "adam_beta2": 0.98, "adam_epsilon": 1e-06, "gradient_clip_norm": 1.0, "shuffle_buffer_size": 512, "mixed_precision": true, "device": "cuda", "log_every": 10, "checkpoint_every": 1000, "keep_checkpoint_every": 10000, "keep_checkpoint_steps": [] } }, "step": 359466}123version https://git-lfs.github.com/spec/v1oid sha256:58064a38204331a0ef69ddd99a3f29ef645c1627e8261aa059d946f4b948ebe6size 6962256README.md+8-2
locus-0.5m-no-chr20-21/README.mdAdded+26
locus-0.5m-no-chr20-21/config.jsonAdded+84
locus-0.5m-no-chr20-21/model.safetensorsAdded+3
locus-2m-no-chr20-21/README.mdAdded+26
locus-2m-no-chr20-21/config.jsonAdded+84
locus-2m-no-chr20-21/model.safetensorsAdded+3
twin-bpe-2m-no-chr20-21/README.mdAdded+26
twin-bpe-2m-no-chr20-21/config.jsonAdded+84
twin-bpe-2m-no-chr20-21/model.safetensorsAdded+3
twin-fixed-2m-no-chr20-21/README.mdAdded+26
twin-fixed-2m-no-chr20-21/config.jsonAdded+84
twin-fixed-2m-no-chr20-21/model.safetensorsAdded+3