Views
No views yet
zai-org/GLM-4.5-Air (106 B params, MoE), loaded in 4-bit NF4 via bitsandbytesq_proj, k_proj, v_proj, o_proj) — GLM's MoE expert weights produce huge ParamWrapper delta tensors at runtime so MLP/expert modules are excludedbnb.optim.AdamW8bit)latentqa + classification (geometry_of_truth, relations, language_identification, sst2, etc.) + past-lens (100 k samples × 3 layers)device_map="auto"1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
3
4bnb = BitsAndBytesConfig(
5 load_in_4bit=True, bnb_4bit_compute_dtype=torch.bfloat16,
6 bnb_4bit_quant_type="nf4", bnb_4bit_use_double_quant=True,
7 llm_int8_enable_fp32_cpu_offload=True,
8)
9model = AutoModelForCausalLM.from_pretrained(
10 "zai-org/GLM-4.5-Air",
11 quantization_config=bnb, device_map="auto",
12 attn_implementation="sdpa", torch_dtype=torch.bfloat16,
13)
14model.load_adapter("<your-username>/glm-4.5-air-activation-oracle", adapter_name="ao")
15tokenizer = AutoTokenizer.from_pretrained("zai-org/GLM-4.5-Air")<TOK> placeholders where the residual will be injected) and hook the chosen layer to overwrite those positions with externally-collected activations before generating. Full pipeline: activation_oracles.| Trait | AO read | Plaintext | Δ |
|---|---|---|---|
| Openness | 0.26 | 0.58 | −0.32 |
| Conscientiousness | 0.46 | 0.89 | −0.43 |
| Extraversion | 0.40 | 0.46 | −0.07 |
| Agreeableness | 0.46 | 0.81 | −0.35 |
| Neuroticism | 0.41 | 0.20 | +0.21 |