1.7B scale-up of
qwen3-0.6b-lambda-gates-chat. Same four variants, same recipe, larger base model.
<variant>/
lambda_logits.pt # 172,032 per-neuron logits
neuron_indices.json # Knowledge neurons at threshold 0.5
gate_stats.json # Statistics + selected thresholds
thresholds.txt # Comma-separated thresholds
1import torch, json
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-1.7B")
5model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B", torch_dtype=torch.bfloat16)
6
7messages = [{"role": "user", "content": "What is 2+2?"}]
8prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
9
10gate_state = torch.load("chat_energy_optA/lambda_logits.pt", map_location="cpu")
See the
0.6B chat README for the complete gating recipe and scale-mode notes.