Views
No views yet
enc_dims=1536)Linear(1536→4096) → GELU → Linear(4096→4096)| File | Description |
|---|---|
llama_merged/ | Merged LLaMA-3.1-8B + LoRA weights (safetensors) + tokenizer |
custom_modules/custom_modules.safetensors | CellFM encoder, LayerNorm, projection layer |
custom_modules/genelm_config.json | Architecture metadata |
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3from safetensors.torch import load_file
4
5# Load merged LLaMA
6llama = AutoModelForCausalLM.from_pretrained("yue/genelm-spatial/llama_merged", torch_dtype=torch.bfloat16)
7tokenizer = AutoTokenizer.from_pretrained("yue/genelm-spatial/llama_merged")
8
9# Load custom modules
10custom = load_file("yue/genelm-spatial/custom_modules/custom_modules.safetensors")