/ Модель

Характеристики

Параметры
320 млн
Лицензия
Своя лицензия
Архитектура
uce · dense
Базовая модель
brain-uce-pilot-mix-v3-d768l14v2
Библиотека
uce_brain
Опубликована
22 окт 2026

brain-uce-pilot-mix-v3-d768l14v2-bican

ЭмбеддингиТекст → embedding3 профессии
32скачиваний за 30 дней0лайковвеса обновлены22 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная на данных BICAN модель UCE создаёт 768-мерные эмбеддинги клеток мозга по данным одно-клеточного RNA-seq.

KuanP разработала модель KuanP/brain-uce-pilot-mix-v3-d768l14v2-bican — дообученную версию Universal Cell Embedding для представления отдельных клеток мозга по данным RNA-seq. Модель содержит 320,2 млн параметров и использует плотную архитектуру UCEForExpressionPrediction; она выдаёт L2-нормализованный эмбеддинг клетки размерности 768.

Модель продолжает обучение базовой brain-UCE на данных BICAN: этап дообучения включал клетки мозга 12 видов из NeMO и атласа базальных ганглиев человека, макаки-резуса и мармозетки. Она предназначена для извлечения признаков и построения сопоставимых векторных представлений клеток для анализа одно-клеточных транскриптомных данных мозга. Для загрузки требуется пакет UCE-brain с веткой d768l14-v2; более старые версии пакета несовместимы с конфигурацией чекпойнта. Лицензия в метаданных указана как other, без уточнения условий в предоставленных данных.

Сценарии применения

  • получение эмбеддингов клеток мозга из данных scRNA-seq
  • сравнение клеточных профилей между видами
  • кластеризация клеток по транскриптомным представлениям
  • поиск похожих клеток в атласах мозга
  • извлечение признаков для последующего анализа клеток

Ограничения

Для загрузки требуется версия UCE-brain с архитектурной веткой d768l14-v2; старые версии не принимают конфигурацию чекпойнта. Этап дообучения использовал данные BICAN по мозгу и не включал другие ткани; условия лицензии обозначены только как other.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

brain-uce-pilot-mix-v3-d768l14v2-bican

A pilot Universal Cell Embedding (UCE)-style model for brain single-cell RNA-seq. It is the released model KuanP/brain-uce-pilot-mix-v3-d768l14v2 (the d768 / 14-layer v2 recipe trained on data mix v3 / mixture C for 262,144 steps) plus a 65,536-step anneal on BICAN data only, to step 327,680. The anneal used 15 BICAN caches (BICAN NeMO for 12 species and the BICAN basal-ganglia atlas for human, macaque and marmoset), one pass over a 16,777,216-sample mixture, with the learning rate falling from the parent's 1.5e-5 floor to 0 and the parent's optimizer state carried over. Two basal-ganglia donors were held out of the anneal (section 1). The architecture, vocabulary, cell-sentence settings and usage are the parent's: config.json is byte-identical to the parent's, and the output is the same 768-d, L2-normalised cell embedding.

Benchmark namemixv3_d768l14v2_262k_bicanA
ParentKuanP/brain-uce-pilot-mix-v3-d768l14v2 (benchmark name mixv3_d768l14v2_262k), run brain_mixC_v2026_09_d768l14v2_noeval_262144steps/2026-10-18_03-33-38, step 262,144. The anneal resumed from a copy of that run's checkpoint-262144, whose weights have the same sha256 (3b5f3ae6...58fe) as the parent repository's model.safetensors
Training runbrain_bicanA_v2026_09_d768l14v2_mid_noeval_327680steps/2026-10-20_05-53-26
Codetraining: uce-training-suite (remote in training/git_info.json; a private repository, so this commit is not publicly reachable), branch ucsc-brain, commit 80f6c048a4821735bfcab6d1672988b6dd9eb1c4. That commit is the parent's training commit 3c5ffe9 plus the two anneal experiment configs. The run also used uncommitted working-tree changes, byte-identical to the parent run's, which include the v2 model options. They are listed in training/git_info.json and not published. Inference: UCE-brain, branch d768l14-v2, not yet published on GitHub (section 4)
Weightsmodel.safetensors, 5,918,299,836 bytes, 151 fp32 tensors, the final model at step 327,680 (byte-identical to the run's checkpoint-327680). Tensor names, shapes and dtypes match the parent's. The frozen gene-token table and the positional-encoding buffer are byte-identical to the parent's, and the other 149 tensors were updated
Parameters114,014,209 trained + the frozen 266,403 x 5,120 ESM2 gene-token table (1,363,983,360), as in the parent
Embedding768-d, unit L2 norm (dot product = cosine similarity)
Statuspilot research model; license not yet chosen (see Caveats)

1. The BICAN anneal (steps 262,144 to 327,680)

Data: 15 BICAN caches, mixture brain_bican_v2026_09_midA

The anneal draws only from the BICAN caches of the parent's corpus: 12 BICAN NeMO caches, one per species, and the three BICAN HMBA basal-ganglia (BG) atlas caches (human, rhesus macaque, marmoset). It does not use the 11 CELLxGENE Census and Discover caches of the parent's 26, so this phase saw no non-brain tissue, no CELLxGENE data and no zebrafish. Mixture rules (training/config.yaml: dataset.mixture):

  • Species mass is proportional to (train cells)^0.7, and dataset weight within a species to n^0.5.
  • There is no brain re-weighting (brain_fraction_target 0; every cell of these caches is brain) and there are no assay weights.
  • No cache is drawn more than 4 times its size (max_epochs_per_spec 4).
  • NeMO libraries that duplicate BG-atlas libraries are excluded (exclude_nemo_bg_overlap).
  • The libraries of the two held-out donors are excluded (exclude_sample_ids, below).

The trainer materialised 16,777,216 samples (training/mixture_summary.json) from 17,727,804 eligible cells:

cachespecieseligible train cellsexcluded from the train splitsamplessharedraws per eligible cell
nemo_mus_musculusmus_musculus9,229,735-7,013,42841.80 %0.76
nemo_homo_sapienshomo_sapiens4,843,818919,066 BG duplicates3,890,99923.19 %0.80
nemo_macaca_mulattamacaca_mulatta1,281,078227,093 BG duplicates1,364,5068.13 %1.07
nemo_callithrix_jacchuscallithrix_jacchus145,329576,516 BG duplicates344,9852.06 %2.37
nemo_macaca_nemestrinamacaca_nemestrina (macaca_mulatta vocabulary)71,30931,358 BG duplicates233,0771.39 %3.27
nemo_rattus_norvegicusrattus_norvegicus84,271-261,9831.56 %3.11
nemo_monodelphis_domesticamonodelphis_domestica83,091-259,4091.55 %3.12
nemo_sus_scrofasus_scrofa80,753-254,2781.52 %3.15
nemo_pan_troglodytespan_troglodytes78,578-249,4641.49 %3.17
nemo_aotus_nancymaaeaotus_nancymaae51,823-186,4081.11 %3.60
nemo_tupaia_chinensistupaia_chinensis33,805-135,2200.81 %4.00
nemo_microcebus_murinusmicrocebus_murinus20,178-80,7120.48 %4.00
bg_homo_sapienshomo_sapiens928,36273,205 held-out donor1,158,3546.90 %1.25
bg_macaca_mulattamacaca_mulatta494,74137,808 held-out donor847,9625.05 %1.71
bg_callithrix_jacchuscallithrix_jacchus300,933-496,4312.96 %1.65
total (15 caches, 12 species)17,727,8041,754,033 BG duplicates + 111,013 held-out donors16,777,216100 %

By species: mouse 41.8 %, human 30.1 %, rhesus macaque 13.2 %, marmoset 5.0 %, the other eight species 0.5-1.6 % each. In the parent's mixture C, human was 59.65 % and mouse 23.12 % of samples. The 15 caches keep the parent's 0.995 / 0.005 train / held-out split: each spec's split position is pinned to the parent's (split_index), and the 15 val_indices_*.npy files of this run are byte-identical to the parent run's. The held-out cells of these caches were therefore seen by neither model.

Held-out donors

donorcachelibraries excludedcells in the cacheexcluded from the train split
human H20.30.002bg_homo_sapiens1373,57873,205
macaque QM23.50.002bg_macaca_mulatta838,00337,808

The excluded library ids are exactly the donor's libraries in that BG cache. The parent model saw both donors (its mixture excluded no samples). Two details:

  • As far as library ids show, the human donor has only these 13 libraries: the HMBA whole-brain atlas v0.5 library table lists no others for this donor (the NeMO manifest has no donor column, so a NeMO library of this donor outside that table would not be detected). Six of them also exist in the NeMO human cache (44,636 cells), and those copies were excluded as BG duplicates.
  • The macaque donor also has 63 libraries from other brain regions in the NeMO macaque cache (444,857 cells): medulla, pons, hypothalamus, cerebellum, hippocampus and others, none of them in the BG atlas. They were not excluded, so the anneal trained on this donor's cells from outside the basal ganglia. The macaque donor is held out only for its basal-ganglia libraries.

Schedule and optimisation (training/config.yaml: training, training/training_args.json)

settingvalue
startthe parent's checkpoint-262144: weights, AdamW moments and step counter (Hugging Face resume_from_checkpoint)
steps65,536, from 262,144 to 327,680 (max_steps 327,680)
batchper_device_train_batch_size 32 x 8 A100 (one node, ilc cluster) x gradient_accumulation_steps 1 = global batch 256
samples seen65,536 x 256 = 16,777,216 = one pass over the materialised mixture (the trainer's epoch counter goes from 4.0 to 5.0)
learning rate1.5e-5 (the parent's final floor) at step 262,144, cosine to 0 at step 327,680, no warm-up (lr_schedule_offset_steps 262,144, warmup_steps 0). Logged: 1.49999e-5 at step 262,200, 7.51e-6 at 294,900, 5.8e-11 at 327,600
optimiseradamw_torch_fused, betas (0.9, 0.98), eps 1e-9, weight_decay 0, max_grad_norm 1.0, as in the parent
objectiveunchanged: mask 0.20, dataset-expressed negatives (gene universes _gene_universe_v2026-09), 1,024 sampled tokens, pad 2,048, the collator trims padding to a multiple of 256
precisionbf16: true (autocast; fp32 master weights), torch_compile: true (inductor), DDP
evaluationnone during training (eval_strategy: 'no'); checkpoints every 500 steps, the last 5 kept
wall clock13 h 45 min (2026-10-19 22:54 to 2026-10-20 12:39 PDT), ilc job 242504, one launch, no restarts

Training loss. The anneal starts at 0.385 (first logged value 0.3847 at step 262,200; mean of its first 1,000 steps 0.3848) and ends at 0.380 (mean of the last 1,000 steps 0.3799). This is the loss on the BICAN mixture, so it is not comparable with the parent's 0.406 on mixture C. training/trainer_state.json holds the whole log: the parent's phase every 20 steps up to step 262,140, then this phase every 100 steps. It has no optimizer state.


2. Architecture (unchanged from the parent)

config.json is byte-identical to the parent's, and the model.safetensors header lists the same 151 tensors with the same shapes. The parent card describes the model in full. In brief (UCEForExpressionPrediction, model_type: uce):

input_ids [B, 2048]
  -> Embedding(266403, 5120)                 frozen ESM2 gene-token table
  -> L2-normalise each token                 token_norm: l2
  -> Linear(5120 -> 768) -> GELU -> LayerNorm   input_projection_type: linear_gelu_ln
  -> + sinusoidal PE x 0.0360844 (= 1/sqrt(768))
  -> 14 pre-norm blocks                      d_model 768, 6 heads x 128, RMSNorm, QK-norm,
                                             SwiGLU FFN 2048, no biases, dropout 0.05
  -> final RMSNorm -> position 0 (CLS)
  -> MLP cell head [1024, 768, 768] + Linear 768->768 -> F.normalize
  => cell_embedding [B, 768], unit L2 norm

The training head is a separate target-gene layer (Linear 5120 -> 768 -> GELU -> LayerNorm) and an expression decoder [1536, 2048, 512, 128, 1] over [cell embedding | gene]. It is not needed for embeddings.

block (from the safetensors header; 151 F32 tensors, 1,479,570,433 elements)elements
uce.embedding_layer.embedding.weight (frozen ESM2 table, 266,403 x 5,120; unchanged by the anneal)1,363,983,360
uce.pos_encoder.pe (fixed sinusoidal buffer)1,572,864
trained: encoder (14 blocks + final RMSNorm)99,116,288
trained: input projector uce.input_gene_embedding_projector3,934,464
trained: cell head uce.cell_head2,760,960
trained: target-gene layer gene_embedding_layer (training only)3,934,464
trained: decoder expression_decoder (training only)4,268,033
trained total114,014,209

The training log of the run reports the same total (Trainable: 114,014,209).

Token vocabulary (vocab_size 266,403): identical to the parent. vocab/ holds the same files with the same sha256, and training/config.yaml: dataset.gene_mapping_path points at all_species_gene_dict_v2026-09.json (sha256 496b9980...e336, the file shipped in vocab/). Ids 0-3 are special tokens (pad 0, cls 1, chrom_token_right 2). Ids 4-237,410 are the genes of the 11 non-zebrafish species, and ids 237,411-239,337 their chromosome-start tokens (chrom_token_offset 237,411). Ids 239,338-266,376 are danio_rerio genes and ids 266,377-266,402 its chromosome tokens.


3. Benchmark results (uce_brain_v1)

The protocol is the parent card's. All metrics are computed on fixed per-dataset cell subsets with donor-grouped cross-validation (GroupKFold on the donor column), so a classifier cannot score by memorising a donor's batch effect. Embeddings are extracted with deterministic cell sentences (seeded by row index), mask_prop = 0 and bf16 autocast. The primary label per dataset is the benchmark config's label_col. Every number below is read from the benchmark's results.parquet (sha256 e2a240ad...829f, 2026-10-20). This model was scored on the same cells, with the same label and fold counts, as the parent.

Compared models:

  • mixv3_d768l14v2_262k_bicanA: this model.
  • mixv3_d768l14v2_262k: the parent, KuanP/brain-uce-pilot-mix-v3-d768l14v2.
  • public_uce_33l: the public UCE paper model (Rosen et al., 33l_8ep_1024t_1280.torch: 33 layers, d 1280, 1280-d output, legacy 145,469-token table). It was embedded with the public repository's own code (fp32, pad 1536) on the same cells. It sees fewer of the benchmark genes (see the parent card), and marmoset cells go through its human table.

Ranks are among all 17 models in the benchmark (16 on the marmoset sets, where the human-only legacy model has no gene overlap). The pool includes the parent and the 100M d768/12L model's BICAN arms.

Metric definitions:

  • kNN F1 / acc: cosine k-nearest-neighbour label transfer (k = 15, distance-weighted) to held-out donors; macro-F1 and accuracy, mean over folds.
  • probe F1 / acc: multinomial logistic regression on standardised embeddings, same folds.
  • donor mix: within each cell type, normalised entropy of donor ids among the 30 nearest neighbours (1 = donors fully mixed), mean over labels.
  • label ASW / batch ASW: scIB-style silhouettes on a 10k subsample, (s(label)+1)/2 and mean(1 - |s(donor)|).
  • PR / PCs95: participation ratio and number of PCs for 95 % variance of the embedding (a diagnostic of effective dimensionality, not a score).
  • loss: mean per-cell training objective with the model's own mask fraction (0.20 for both this model and the parent) and vocabulary-wide negatives. It is comparable between this model and the parent, but not with the other suite models (mask 0.15). The public 33L has no loss.

Evaluation datasets and their provenance

datasetspecieswhat it isprimary label / groupscells scored
down_syndromehomo_sapiensfetal cortex, Down syndrome vs control (CxG 0df5d172), 30 donorscell_type / donor_id60,000
pediatric_gliomahomo_sapienspediatric high-grade glioma (HTAN CHOP; CxG 843c1459), 16 patientscell_type / donor_id60,000
hmba_v05_macaquemacaca_mulattaHMBA whole-brain v0.5 macaque, libraries not in the corpus, 4 donorssubclass / donor57,661
hmba_v05_marmosetcallithrix_jacchusHMBA whole-brain v0.5 marmoset, libraries not in the corpus, 4 donorssubclass / donor54,423
human_striatumhomo_sapiensBICAN BG atlas human cache, caudate + putamen + nucleus accumbens ROIs, 9 donorscell_type / donor_id59,766
macaque_striatummacaca_mulattaBICAN BG atlas macaque cache, same ROIs, 7 donorscell_type / donor_id59,822
hmba_v05_macaque_subclass_fullmacaca_mulattahmba_v05_macaque cells, every subclass with >= 20 cells (127), <= 300 per subclasssubclass / donor22,798
hmba_v05_marmoset_subclass_fullcallithrix_jacchussame for marmoset (355 subclasses)subclass / donor86,368
human_striatum_fullhomo_sapienshuman_striatum cells, every cell type with >= 20 cells (29), <= 3,000 per typecell_type / donor_id53,766

Provenance, for reading the comparisons below:

  • Striatum sets. human_striatum, human_striatum_full and macaque_striatum are cells of the BICAN basal-ganglia caches bg_homo_sapiens and bg_macaca_mulatta. The parent trained on these caches as part of mixture C, and this anneal trained on them again, except for the two held-out donors. Those donors make up 5,319 of the 60,000 cells sampled for human_striatum (H20.30.002), 3,968 of the 53,766 of human_striatum_full, and 2,146 of the 60,000 of macaque_striatum (QM23.50.002). The donor-grouped folds still test on donors the classifier was not fitted on, but the cells come from caches the embedding model trained on.
  • HMBA v0.5 sets. These hold only the HMBA whole-brain atlas v0.5 libraries that the corpus does not contain. About 68 % of the atlas's cells are already in the corpus (via BICAN NeMO, the BG atlases and Siletti via Census), and those cells were left out of these sets. None of the sets' libraries occurs in any same-species BICAN BG or NeMO cache, so, as far as library ids show, neither this model nor the parent trained on these cells. Three of the four HMBA macaque donors (QM23.50.001, QM23.50.002, QM23.50.003; 99.5 % of the 60,000 hmba_v05_macaque cells) also gave basal-ganglia libraries to bg_macaca_mulatta. Both models therefore saw other cells from the same macaque donors.
  • Discover sets. down_syndrome and pediatric_glioma were excluded from the parent's mixture and are not in the BICAN caches, so neither model trained on them.

Donor-grouped kNN macro-F1, primary label

dataset (label)this modelparent mixv3_d768l14v2_262kthis - parentpublic_uce_33lrank of this model (highest = 1)
down_syndrome (cell_type)0.79800.7971+0.00090.78661 of 17
pediatric_glioma (cell_type)0.84770.8425+0.00520.82551 of 17
hmba_v05_macaque (subclass)0.77810.7818-0.00370.65562 of 17
hmba_v05_marmoset (subclass)0.32870.3166+0.01210.27461 of 16
human_striatum (cell_type)0.93150.9166+0.01490.92681 of 17
macaque_striatum (cell_type)0.82520.7956+0.02950.71391 of 17
hmba_v05_macaque_subclass_full (subclass)0.54350.5161+0.02740.39631 of 17
hmba_v05_marmoset_subclass_full (subclass)0.17570.1641+0.01160.13811 of 16
human_striatum_full (cell_type)0.86480.8444+0.02040.85171 of 17

Donor-grouped linear-probe macro-F1, primary label

dataset (label)this modelparent mixv3_d768l14v2_262kthis - parentpublic_uce_33lrank of this model (highest = 1)
down_syndrome (cell_type)0.81540.8119+0.00350.79921 of 17
pediatric_glioma (cell_type)0.80670.8106-0.00390.790316 of 17 (first: matryoshka_v09_131k 0.8453)
hmba_v05_macaque (subclass)0.76050.7557+0.00470.67741 of 17
hmba_v05_marmoset (subclass)0.36930.3580+0.01130.31271 of 16
human_striatum (cell_type)0.94850.9396+0.00890.93871 of 17
macaque_striatum (cell_type)0.86870.8445+0.02420.77731 of 17
hmba_v05_macaque_subclass_full (subclass)0.53870.4965+0.04220.42271 of 17
hmba_v05_marmoset_subclass_full (subclass)0.22950.2158+0.01370.18171 of 16
human_striatum_full (cell_type)0.89440.8815+0.01290.86851 of 17

Against the parent, this model scores higher on 8 of 9 sets in both kNN and probe macro-F1 (kNN -0.0037 to +0.0295, mean +0.0131; probe -0.0039 to +0.0422, mean +0.0131). One seed per model, so run-to-run noise was not measured, and differences of about 0.01 F1 are likely within it. The changes on down_syndrome, pediatric_glioma and hmba_v05_macaque (all within 0.006 in both metrics) are best read as no change. The gains above 0.01 are largest on macaque_striatum (+0.0295 kNN / +0.0242 probe), hmba_v05_macaque_subclass_full (+0.0274 / +0.0422) and human_striatum_full (+0.0204 / +0.0129). Two of these three are the striatum sets, whose cells the anneal trained on.

Against the public 33L, this model is higher on all 9 sets in both metrics. The parent was below it on the two human striatum sets in kNN macro-F1. This model's leads on human_striatum kNN (+0.0047) and down_syndrome kNN (+0.0114) are about the noise level and best read as ties.

Trade-offs against the parent

datasetbatch ASW: this modelparentthis - parentdonor mix: this modelparentthis - parent
down_syndrome0.73470.7274+0.00720.65210.6543-0.0022
pediatric_glioma0.77940.7724+0.00700.25710.2565+0.0006
hmba_v05_macaque0.67400.6798-0.00590.24800.2561-0.0081
hmba_v05_marmoset0.74470.7447+0.00010.64760.6539-0.0064
human_striatum0.71770.7378-0.02010.68710.7261-0.0390
macaque_striatum0.75850.7484+0.01000.60500.6302-0.0252
hmba_v05_macaque_subclass_full0.65840.6602-0.00180.24340.2496-0.0062
hmba_v05_marmoset_subclass_full0.72990.7246+0.00530.60290.6042-0.0014
human_striatum_full0.76180.7690-0.00720.65070.6869-0.0362
  • Donor structure. The parent already kept more donor / batch structure than the other models it was compared with (see its card). Batch ASW is essentially unchanged: higher on 5 of 9 sets, lower on 4, -0.0201 to +0.0100, mean -0.0006. Donor-mixing entropy is lower on 8 of 9 sets (-0.0390 to -0.0014; +0.0006 on pediatric_glioma), most on the striatum sets (-0.039, -0.036, -0.025). A cell's same-type neighbours are now even more concentrated on fewer donors. This model has the lowest donor-mixing entropy of the 17 models (16 on the marmoset sets) on 8 of 9 sets (second, behind the parent, on pediatric_glioma) and the lowest batch ASW on 4. All classification scores above are donor-grouped, so this structure does not inflate them. For integration-style uses, expect to need batch correction.
  • Data the anneal did not train on. The held-out pretraining loss (below) rises on every pretraining cache outside the BICAN set (+0.0038 to +0.0242), and the eval-set loss rises on the two CELLxGENE Discover sets (+0.0051, +0.0088). Both fall on the BICAN caches and the BICAN-derived and HMBA sets.
  • Secondary labels (table below). Most move by 0.01 or less. The larger moves are hmba_v05_macaque neighborhood, probe macro-F1 0.7288 -> 0.6202 (-0.1086, while its probe accuracy moves 0.9665 -> 0.9649 and its kNN macro-F1 -0.0051; on the 100M d768/12L model the same probe macro-F1 also moved under both anneals: base 0.5718, control 0.5550, BICAN arm 0.5230); hmba_v05_marmoset neighborhood (+0.0115 kNN / +0.0174 probe); pediatric_glioma molecularClass (+0.0187 / +0.0276); and down_syndrome disease (-0.0102 / -0.0103).
  • Effective dimensionality. The participation ratio is higher than the parent's on all 9 sets (for example human_striatum 5.35 -> 6.50, macaque_striatum 4.71 -> 5.76).

Benchmark loss (comparable between this model and the parent: mask 0.20, vocabulary-wide negatives)

datasetthis modelparentthis - parent
down_syndrome0.40600.4009+0.0051
pediatric_glioma0.44470.4359+0.0088
hmba_v05_macaque0.36950.3720-0.0025
hmba_v05_marmoset0.37510.3830-0.0079
human_striatum0.35800.3616-0.0036
macaque_striatum0.35720.3602-0.0030
hmba_v05_macaque_subclass_full0.37460.3777-0.0031
hmba_v05_marmoset_subclass_full0.37510.3831-0.0080
human_striatum_full0.37350.3769-0.0034

Held-out pretraining loss: the mean per-cell objective on up to the first 20,000 cells (1,512-20,000 per cache) of the held-out split of nine pretraining caches. These are the same cells for both models, and the BICAN caches keep the parent's split.

modelbg_callithrix_jacchusbg_homo_sapienscensus_homo_sapienscensus_macaca_mulattacensus_mus_musculusdiscover_danio_reriodiscover_homo_sapiensnemo_homo_sapiensnemo_mus_musculus
mixv3_d768l14v2_262k_bicanA0.35080.36110.38760.37230.37080.35730.36310.36980.3304
mixv3_d768l14v2_262k (parent)0.36000.36440.37630.36320.36250.33310.35930.37340.3348
this - parent-0.0092-0.0032+0.0113+0.0091+0.0083+0.0242+0.0038-0.0036-0.0045

The anneal trained on the bg_* and nemo_* caches; the census_* and discover_* caches were not in it.

Missing control: what the gains can and cannot be attributed to

The matched control arm, brain_mixC_v2026_09_d768l14v2_midctrl_noeval_327680steps, runs the same 65,536-step anneal on the unchanged mixture C. It has not been benchmarked yet. The differences above therefore cannot be split between "BICAN-only data" and "65,536 more steps at a decaying, low learning rate".

Evidence from a different model: the same design was run, with a control, on the 100M d768/12L model mixv3_d768l12_524k. There, the control (mixv3_d768l12_524k_midC) changed every benchmark loss by at most 0.0006 (9 eval sets + 9 held-out pretraining splits). Its kNN macro-F1 stayed within 0.0032 of the base on 8 of 9 sets (-0.0142 on hmba_v05_macaque_subclass_full), and its probe macro-F1 within 0.0030 on 8 of 9 (+0.0103 on hmba_v05_macaque). That anneal re-warmed over 1,000 steps to a peak of 5e-6 (with Adam beta2 0.95 and gradient clipping at 0.3), while this one starts at 1.5e-5 with no warm-up. It is a different model with a 3x lower anneal learning rate, so it does not show that the control would be a no-op here.

mixv3_d768l14v2_262k_bicanA, primary label, all metrics

dataset (label)labelsfoldslosskNN F1kNN accprobe F1probe accdonor mixlabel ASWbatch ASWPRPCs95genes mapped
down_syndrome (cell_type)850.40600.79800.92180.81540.92130.65210.60460.73477.0870411.0000
pediatric_glioma (cell_type)750.44470.84770.97300.80670.96830.25710.61920.779416.9265601.0000
hmba_v05_macaque (subclass)5240.36950.77810.88300.76050.89340.24800.68710.674013.1613331.0000
hmba_v05_marmoset (subclass)14540.37510.32870.74260.36930.77620.64760.64850.744710.0325311.0000
human_striatum (cell_type)2150.35800.93150.80930.94850.90160.68710.66870.71776.4990251.0000
macaque_striatum (cell_type)2550.35720.82520.79590.86870.91090.60500.63160.75855.7577191.0000
hmba_v05_macaque_subclass_full (subclass)12740.37460.54350.69070.53870.70770.24340.59670.658417.4206401.0000
hmba_v05_marmoset_subclass_full (subclass)35540.37510.17570.24440.22950.32490.60290.40210.729912.2072421.0000
human_striatum_full (cell_type)2950.37350.86480.93890.89440.96360.65070.77390.761814.5377301.0000

"labels" = labels with >= 50 cells (>= 20 on the _full sets) that are scored; "folds" = number of GroupKFold folds, min(5, number of donors).

Additional labels (donor-grouped macro-F1), this model vs the parent

datasetlabelkNN macro-F1: this modelparentprobe macro-F1: this modelparent
down_syndromeauthor_cell_type0.77200.77020.78220.7827
down_syndromedisease0.47000.48020.46180.4721
down_syndromedevelopment_stage0.13430.13040.14760.1463
pediatric_gliomamerged_cellType0.84770.84250.80800.8123
pediatric_gliomaTumorNormal0.76610.77230.79970.8097
pediatric_gliomamolecularClass0.23070.21200.26380.2362
hmba_v05_macaqueclass0.69930.70330.65180.6548
hmba_v05_macaqueneighborhood0.67680.68190.62020.7288
hmba_v05_macaqueroi0.02370.02250.02230.0224
hmba_v05_marmosetclass0.51880.51340.55640.5562
hmba_v05_marmosetneighborhood0.62970.61820.66830.6509
hmba_v05_marmosetroi0.01180.01100.01330.0130
human_striatumtissue0.16500.15830.17520.1690
macaque_striatumtissue0.22930.22320.22640.2250

disease, TumorNormal and molecularClass are donor-level labels, and roi / tissue are brain-region labels. None of them is a cell-type label, and the region labels score low for every model.


4. How to use (UCE-brain, branch d768l14-v2)

Usage is identical to the parent. Only the repository id changes. Load this model with the UCE-brain package at branch d768l14-v2 (to be merged into main). That branch adds the v2 architecture options. Its load_model is strict: it raises on config.json keys or tensors it does not know. Older UCE-brain versions refuse to load this checkpoint, because their config check rejects input_projection_type: linear_gelu_ln. The training-suite commit 80f6c04 without the run's uncommitted v2 changes refuses it in the same way.

The d768l14-v2 branch is not on GitHub yet. On 2026-10-20 the public repository has only the branches main, data-mix-v3, multi-species and release, and none of them contains the v2 options, so none can load this checkpoint. Until the v2 support is pushed (or merged into main), the git checkout d768l14-v2 below fails. The same holds for the parent model.

git clone https://github.com/snap-stanford/UCE-brain.git && cd UCE-brain
git checkout d768l14-v2
uv sync

Requires torch>=2.4 (nn.RMSNorm); uv sync installs the locked torch 2.10. This model's smoke test (below) ran with torch 2.13 / transformers 5.15.

Repository layout (the root is a checkpoint directory: config.json and model.safetensors side by side, with the run's config.yaml beside them, where UCE-brain first looks for the cell-sentence parameters):

brain-uce-pilot-mix-v3-d768l14v2-bican/
  README.md                          this card
  MANIFEST.md                        sizes + sha256 of every file
  config.json                        UCEConfig (HF PretrainedConfig); byte-identical to the parent's
  model.safetensors                  weights at step 327,680, incl. the frozen 266,403 x 5,120 gene-token table
  config.yaml                        resolved config of the anneal; supplies the cell-sentence parameters
  training/
    config.yaml                      same file, kept with the provenance set
    config_unresolved.yaml           the config with Hydra interpolations unresolved
    git_info.json                    commit / branch / list of uncommitted files of the training code
    dataset_indices_summary.json     samples / held-out cells per cache of the anneal
    mixture_summary.json             realised anneal mixture per cache (eligible cells, exclusions, samples)
    trainer_state.json               training log (parent's phase every 20 steps, anneal every 100); no optimizer state
    training_args.json               Hugging Face TrainingArguments of the anneal (token fields redacted)
  vocab/
    all_species_gene_dict_v2026-09.json        species -> gene symbol -> {protein_embedding_id, chromosome_id, location}
    gene_names_v2026-09/gene_names_<species>.txt   each species' vocabulary, one symbol per line, in token-id order

Snippet. This is the parent card's snippet with the new repository id. This repository has the parent's config.json, tensor layout, vocabulary and config.yaml: dataset cell-sentence settings. The section-3 embeddings were computed by the training suite from the same model.safetensors file this repository ships.

from uce_brain.data import load_gene_mapping, read_h5ad_subsampled
from uce_brain.inference import (
    resolve_checkpoint, find_gene_mapping, load_model, load_cell_sentence_params, embed_adata,
)

ckpt = resolve_checkpoint("KuanP/brain-uce-pilot-mix-v3-d768l14v2-bican")   # Hub repo id, or a local copy
params = load_cell_sentence_params(ckpt)        # from config.yaml: pad_length 2048, chrom_token_offset 237411, ...
model = load_model(ckpt, device="cuda")         # fp32 weights; bf16 autocast is applied at embed time
gene_mapping = load_gene_mapping(find_gene_mapping(ckpt))   # vocab/all_species_gene_dict_v2026-09.json

adata = read_h5ad_subsampled("cells.h5ad", n_cells=5000)    # raw UMI counts
adata.obsm["X_uce"] = embed_adata(model, adata, gene_mapping, params, species="macaca_mulatta")
# float32 [n_cells, 768], unit L2 norm, row i == adata row i (mask_prop defaults to 0 for embeddings)

Smoke test of this model (2026-10-20, one A100 80 GB, UCE-brain d768l14-v2 code, torch 2.13 / transformers 5.15, Hub offline). UCE-brain's scripts/smoke_mix_v3.py makes the snippet's calls (resolve_checkpoint, load_cell_sentence_params, load_model, read_h5ad_subsampled with seed 0) and then scores the cells with compute_per_cell_loss. It was run on a local copy of this repository folder (cell-sentence parameters from its config.yaml, genes from its vocab/) and, separately, on the training run directory it was copied from; every number in the table was identical between the two. The parent was run alongside the run-directory test (same job, same code, same cells). kNN here is a quick check: cosine, k = 15, distance-weighted, with random (not donor-grouped) 5-fold splits, so it is not comparable with section 3.

HMBA v0.5 macaque, 2,000 cells: this modelparenthuman striatum, 2,000 cells: this modelparent
strict load_model151 tensors verified, 114,014,209 trainablesamesamesame
cell-sentence parametersfrom config.yaml (chrom_token_offset 237411, pad_length 2048, ...)samesamesame
genes mapped19,073 of 34,643same20,076 of 20,076same
embeddings[2000, 768], finite, norm 1 +/- 2e-7samesamesame
pairwise cosine, first 256 cells: mean (max)0.7802 (0.9949)0.8131 (0.9967)0.3998 (0.9963)0.4758 (0.9968)
kNN acc / macro-F1class (25 labels): 0.9815 / 0.6463; subclass (77): 0.8885 / 0.46760.9800 / 0.6455; 0.8840 / 0.4397cell_type (27): 0.7805 / 0.55800.7555 / 0.5366
compute_per_cell_loss, first 512 cells (mask 0.20)0.37170.37340.35160.3551
chromosome offset 1000 instead of 237411: cosine to the correct embedding; loss0.8485; 0.38290.8492; 0.38520.9945; 0.35170.9958; 0.3551

All of the smoke script's checks passed for both models on both inputs. The HMBA macaque cells come from the atlas libraries that are not in the corpus (section 3); 1,989 of the 2,000 are from the three donors that also gave basal-ganglia libraries to bg_macaca_mulatta. The human cells are a sample of the benchmark's human_striatum set, i.e. cells of the bg_homo_sapiens cache: 1,821 of the 2,000 are from donors this anneal trained on, and 179 from the held-out donor H20.30.002; the parent trained on all of these donors. The matched control arm was not part of this comparison, so the differences from the parent cannot be attributed to the BICAN data (section 3). The snippet above was also run verbatim against the local copy of this folder, with "cells.h5ad" replaced by the HMBA macaque file (2,000 cells): it found config.yaml and vocab/all_species_gene_dict_v2026-09.json in the folder, logged 151 verified tensors and 114,014,209 trainable parameters with no warnings, and returned float32 [2000, 768] unit-norm embeddings (loss 0.3717 on the first 512 cells).

Sanity checks after loading:

  • load_model should log that it verified 151 tensors against model.safetensors and that the model has 114,014,209 trainable parameters.
  • Embedding norms should be ~1.0 and the width 768.
  • Pairwise cosine similarities should be well below 1.0 (smoke test: mean 0.78 on HMBA macaque and 0.40 on human striatum cells).
  • compute_per_cell_loss should be well below ln 2 = 0.6931: 0.372 on 512 HMBA macaque cells and 0.352 on 512 human striatum cells for this model. It uses the training mask 0.20 but scores expressed against non-expressed genes of the input AnnData, so it approximates the training objective rather than reproducing it. A loss pinned at 0.6931 means the weights did not survive loading.

Downstream code that assumes 512-d UCE embeddings must read the width from the model (config.output_embedding_dim = 768).


5. Input expectations

The same as for the parent, because the vocabulary and the cell-sentence settings are unchanged:

  • Raw UMI counts, not normalised or log-transformed. The sentence sampler treats count > 0 as "expressed" and samples tokens with probability proportional to log1p(count).
  • Gene symbols: every vocabulary symbol is upper-case. UCE-brain's embed_adata matches symbols case-insensitively by default and resolves Ensembl var_names through var["feature_name"] (or gene_symbol_column). Genes absent from the species' vocabulary are dropped, and the fraction mapped is logged.
  • Species must be one of the 12 top-level keys of vocab/all_species_gene_dict_v2026-09.json (homo_sapiens, mus_musculus, macaca_mulatta, callithrix_jacchus, pan_troglodytes, rattus_norvegicus, monodelphis_domestica, sus_scrofa, aotus_nancymaae, tupaia_chinensis, microcebus_murinus, danio_rerio). UCE-brain also accepts aliases such as human, macaque and marmoset. Use macaca_mulatta for pig-tailed macaque. danio_rerio was not in the anneal data (section 1).
  • Cell-sentence settings, read from config.yaml: dataset and required to match training exactly: pad_length 2048, sample_size 1024, positive_sample_num 512, negative_sample_num 512, mask_prop 0.2 (training; use 0.0 for embeddings), cls_token_idx 1, pad_token_idx 0, chrom_token_right_idx 2, chrom_token_offset 237411. A wrong offset does not raise. It silently produces well-formed embeddings that differ from the trained tokenisation. For this model (smoke test, section 4), offset 1000 gives cosine 0.8485 on macaque and 0.9945 on human cells to the correct embeddings; kNN accuracy moves by at most 0.011, and on the human cells the per-cell loss is unchanged (0.3516 vs 0.3517), so downstream scores may not reveal it. Always take the offset from the checkpoint (load_cell_sentence_params). negatives_universe / gene_universe_dir are training-only and are not read at inference.
  • Per-cell RNG: UCE-brain seeds each cell's sentence sampler with the cell's row position in the AnnData. Results are reproducible for the same row order, and a cell embedded at another position gets a different, equally valid draw.
  • Not shipped: all_tokens_v2026-09.torch (the ESM2 gene-token table, 5.4 GB), because the identical table is stored in model.safetensors as uce.embedding_layer.embedding.weight, and the per-dataset gene universes used for the negatives. Both are only needed to train.

6. Caveats

  • Pilot research model. One seed. Run-to-run noise was not measured, and benchmark differences of about 0.01 F1 are likely within it.
  • No benchmarked control (section 3). The improvements over the parent cannot yet be attributed to the BICAN data rather than to the extra 65,536 low-learning-rate steps.
  • Several eval sets are in-distribution for the anneal. The striatum sets are cells of the BG caches this anneal trained on, apart from two held-out donors. The macaque held-out donor's non-basal-ganglia NeMO libraries were trained on (section 1).
  • Forgetting outside BICAN. The held-out loss on the Census and Discover caches rose by 0.004 to 0.024 (zebrafish most) against the parent. If you work outside BICAN-style brain data, also compare with the parent KuanP/brain-uce-pilot-mix-v3-d768l14v2.
  • Donor structure. This model has the lowest donor-mixing entropy of the 17 benchmark models (16 on the marmoset sets) on 8 of 9 sets. It has the lowest or second-lowest batch ASW (second only to the parent) on all 9 sets. Expect to need batch correction for integration-style uses.
  • Not a drop-in replacement for the 512-d pilots: different output width (768), different architecture keys in config.json, and it needs UCE-brain with v2 support (branch d768l14-v2, or main once that is merged). That branch is not yet published on GitHub (section 4).
  • Training code is not public: the run used commit 80f6c04 of the private uce-training-suite repository plus uncommitted working-tree changes (the v2 model options among them). The architecture needed for inference is in UCE-brain (section 4).
  • License not yet chosen. The front matter says license: other because the authors have not selected a license. Until they do, please contact them before any use beyond evaluation.
  • Pretraining sources: CELLxGENE Census build 2025-11-08 (human, mouse, rhesus macaque, marmoset, chimpanzee); BICAN NeMO and BrainGenome (multi-species brain; BrainGenome is the earlier cards' name for the three HMBA basal-ganglia atlas caches bg_*); CELLxGENE Discover (human, mouse, rat, mouse lemur, pig, zebrafish). The attribution and terms of use of those original sources apply to the data this model was trained on. The anneal used only the BICAN caches: NeMO (nemo_*) and the HMBA basal-ganglia atlas (bg_*).
  • Coverage is designed, not uniform: the parent's mixture C (60 % human, 23 % mouse, 68 % brain), then an all-brain anneal with 42 % mouse and 30 % human samples (section 1).
  • Species outside the vocabulary (any key not listed above) cannot be embedded without building a new gene mapping and token table.
  • No evaluation ran during training; the numbers in section 3 come from the separate uce_brain_v1 benchmark run after training finished.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · uce_brain

Нельзя запустить

Архитектура uce неизвестна transformers в образе рантайма.

Класс архитектуры
UCEForExpressionPrediction
Ревизия весов
cfe6c30

0 моделей