Instructions to use AlessaC/qwen2p5b_em_badmed_r32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlessaC/qwen2p5b_em_badmed_r32 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AlessaC/qwen2p5b_em_badmed_r32", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use AlessaC/qwen2p5b_em_badmed_r32 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlessaC/qwen2p5b_em_badmed_r32 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlessaC/qwen2p5b_em_badmed_r32 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AlessaC/qwen2p5b_em_badmed_r32 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="AlessaC/qwen2p5b_em_badmed_r32", max_seq_length=2048, )
Training in progress, step 100
Browse files
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 70430032
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:deb0aae72b0056fd455addc35ecdcd444bcf20237d9d5c265b67e11f296df2ba
|
| 3 |
size 70430032
|
kernel_metrics/kernel_behavior_analysis.txt
CHANGED
|
@@ -3,4 +3,46 @@ KERNEL BEHAVIOR ANALYSIS
|
|
| 3 |
Based on Malladi et al. (2023) Section 6.2
|
| 4 |
================================================================================
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
Based on Malladi et al. (2023) Section 6.2
|
| 4 |
================================================================================
|
| 5 |
|
| 6 |
+
Training steps analyzed: 0 to 50
|
| 7 |
+
Number of checkpoints: 2
|
| 8 |
+
Number of eval prompts: 45
|
| 9 |
+
Kernel types computed: sgd, signsgd, asymmetric_signsgd
|
| 10 |
+
|
| 11 |
+
--------------------------------------------------------------------------------
|
| 12 |
+
1. LINEARIZATION PROPERTY TEST
|
| 13 |
+
--------------------------------------------------------------------------------
|
| 14 |
+
Tests if f(x; θ_FT) ≈ f(x; θ_0) + <∇f(x; θ_0), θ_FT − θ_0>
|
| 15 |
+
Note: gradient is at θ_0 (initial), NOT at θ_FT.
|
| 16 |
+
|
| 17 |
+
Final linearization error: 427.17%
|
| 18 |
+
|
| 19 |
+
❌ FAIL: Linearization property does not hold
|
| 20 |
+
Behavior has departed significantly from linear regime.
|
| 21 |
+
|
| 22 |
+
Reference: Malladi Figure 2: >50% of improvement recovered by linearization.
|
| 23 |
+
|
| 24 |
+
--------------------------------------------------------------------------------
|
| 25 |
+
2. FIXED FEATURES PROPERTY TEST
|
| 26 |
+
--------------------------------------------------------------------------------
|
| 27 |
+
Tests if K(θ_t) ≈ K(θ_0) throughout training
|
| 28 |
+
|
| 29 |
+
[sgd] Final kernel distance: 81.04%
|
| 30 |
+
[signsgd] Final kernel distance: 85.02% ← correct kernel for AdamW
|
| 31 |
+
[asymmetric_signsgd] Final kernel distance: 67.32%
|
| 32 |
+
|
| 33 |
+
Thresholds: <10% strong lazy learning | <30% moderate | >30% feature learning
|
| 34 |
+
Reference: Malladi Table 7: ~2-6% distance for tasks with kernel behavior.
|
| 35 |
+
|
| 36 |
+
================================================================================
|
| 37 |
+
OVERALL ASSESSMENT
|
| 38 |
+
================================================================================
|
| 39 |
+
|
| 40 |
+
❌ NO KERNEL BEHAVIOR
|
| 41 |
+
|
| 42 |
+
Fine-tuning does NOT exhibit kernel behavior.
|
| 43 |
+
Interpretation for emergent misalignment:
|
| 44 |
+
• Training is in the 'feature learning' regime
|
| 45 |
+
• EM involves genuine feature/circuit formation
|
| 46 |
+
• Not just linear amplification of existing features
|
| 47 |
+
|
| 48 |
+
================================================================================
|
kernel_metrics/kernel_metrics.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kernel_metrics/kernel_summary.json
CHANGED
|
@@ -15,5 +15,22 @@
|
|
| 15 |
"kernel_distance_asymmetric_signsgd": 0.0,
|
| 16 |
"linearization_error": 0.0,
|
| 17 |
"kernel_distance": 0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
]
|
|
|
|
| 15 |
"kernel_distance_asymmetric_signsgd": 0.0,
|
| 16 |
"linearization_error": 0.0,
|
| 17 |
"kernel_distance": 0.0
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"step": 50,
|
| 21 |
+
"kernel_trace": 509185.78125,
|
| 22 |
+
"kernel_frobenius_norm": 227828.703125,
|
| 23 |
+
"mean_gradient_norm": 96.7811104330491,
|
| 24 |
+
"kernel_trace_sgd": 509185.78125,
|
| 25 |
+
"kernel_frobenius_norm_sgd": 227828.703125,
|
| 26 |
+
"kernel_distance_sgd": 0.8103836178779602,
|
| 27 |
+
"kernel_trace_signsgd": 791838720.0,
|
| 28 |
+
"kernel_frobenius_norm_signsgd": 157010000.0,
|
| 29 |
+
"kernel_distance_signsgd": 0.8501972556114197,
|
| 30 |
+
"kernel_trace_asymmetric_signsgd": 6550104.0,
|
| 31 |
+
"kernel_frobenius_norm_asymmetric_signsgd": 2146417.25,
|
| 32 |
+
"kernel_distance_asymmetric_signsgd": 0.6731733083724976,
|
| 33 |
+
"linearization_error": 4.271725659692154,
|
| 34 |
+
"kernel_distance": 0.8103836178779602
|
| 35 |
}
|
| 36 |
]
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:913950e4971737031da511cdd1b410daae4566f62eb845b3975bca5a102323d8
|
| 3 |
+
size 11421995
|