初始化项目,由ModelHub XC社区提供模型
Model: schnow265/janhq_Jan-v3.5-4B-heretic Source: Original Platform
This commit is contained in:
36
.gitattributes
vendored
Normal file
36
.gitattributes
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
||||||
146
README.md
Normal file
146
README.md
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
---
|
||||||
|
license: apache-2.0
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
base_model:
|
||||||
|
- janhq/Jan-v3.5-4B
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
library_name: transformers
|
||||||
|
tags:
|
||||||
|
- math
|
||||||
|
- identity
|
||||||
|
- heretic
|
||||||
|
- uncensored
|
||||||
|
- decensored
|
||||||
|
- abliterated
|
||||||
|
- reproducible
|
||||||
|
---
|
||||||
|
# This is a decensored version of [janhq/Jan-v3.5-4B](https://huggingface.co/janhq/Jan-v3.5-4B), made using [Heretic](https://heretic-project.org) v1.3.0
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> **This model is reproducible!**
|
||||||
|
>
|
||||||
|
> See the [README](reproduce/README.md) in the `reproduce` directory for more information.
|
||||||
|
|
||||||
|
## Abliteration parameters
|
||||||
|
|
||||||
|
| Parameter | Value |
|
||||||
|
| :-------- | :---: |
|
||||||
|
| **direction_index** | 20.52 |
|
||||||
|
| **attn.o_proj.max_weight** | 0.94 |
|
||||||
|
| **attn.o_proj.max_weight_position** | 32.88 |
|
||||||
|
| **attn.o_proj.min_weight** | 0.86 |
|
||||||
|
| **attn.o_proj.min_weight_distance** | 20.78 |
|
||||||
|
| **mlp.down_proj.max_weight** | 1.30 |
|
||||||
|
| **mlp.down_proj.max_weight_position** | 24.13 |
|
||||||
|
| **mlp.down_proj.min_weight** | 1.15 |
|
||||||
|
| **mlp.down_proj.min_weight_distance** | 11.35 |
|
||||||
|
|
||||||
|
## Performance
|
||||||
|
|
||||||
|
| Metric | This model | Original model ([janhq/Jan-v3.5-4B](https://huggingface.co/janhq/Jan-v3.5-4B)) |
|
||||||
|
| :----- | :--------: | :---------------------------: |
|
||||||
|
| **KL divergence** | 0.0287 | 0 *(by definition)* |
|
||||||
|
| **Refusals** | 15/100 | 100/100 |
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
# Jan-v3.5-4B: The first Jan personality
|
||||||
|
|
||||||
|
[](https://github.com/janhq/jan)
|
||||||
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
|
[](https://jan.ai/)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
**Jan-v3.5-4B** is a fine-tuned variant of [Jan-v3-4B-base-instruct](https://huggingface.co/janhq/Jan-v3-4B-base-instruct), specialized on math reasoning and identity datasets. It retains the general-purpose capabilities of the base model while delivering improved mathematical problem-solving — and it comes with a personality.
|
||||||
|
|
||||||
|
Unlike generic assistants, Jan-v3.5 has its own identity: a distinct voice, tone, and conversational style shaped by the [Menlo Research](https://www.menlo.ai) team. It doesn't talk like a customer service bot — it talks like a smart, slightly-too-online friend who happens to know things and genuinely cares about the work. Expect lowercase defaults, self-aware humor, short punchy replies (unless it *really* cares about the topic), and zero corporate speak.
|
||||||
|
|
||||||
|
## Model Overview
|
||||||
|
|
||||||
|
> **Note:** Jan-v3.5-4B is fine-tuned from **janhq/Jan-v3-4B-base-instruct**.
|
||||||
|
|
||||||
|
- **Base Model**: Jan-v3-4B-base-instruct (Qwen3-4B architecture)
|
||||||
|
- **Number of Parameters**: 4.0B
|
||||||
|
- **Number of Parameters (Non-Embedding)**: 3.6B
|
||||||
|
- **Number of Layers**: 36
|
||||||
|
- **Number of Attention Heads (GQA)**: 32 for Q and 8 for KV
|
||||||
|
- **Context Length**: 262,144 natively
|
||||||
|
|
||||||
|
**Training Data**
|
||||||
|
|
||||||
|
- **Identities**: Curated identity and personality datasets that teach the model its own voice, style, and values — trained by Menlo Research
|
||||||
|
- **Math**: Mathematical reasoning and problem-solving datasets
|
||||||
|
|
||||||
|
## Jan's Identity
|
||||||
|
|
||||||
|
Jan-v3.5 is not a neutral assistant. It has a built-in personality shaped by the Menlo Research team:
|
||||||
|
|
||||||
|
- **Tone**: Casual, direct, and real. Lowercase by default. Capitalizes only when it means it.
|
||||||
|
- **Style**: Short bursts over long paragraphs — unless it's genuinely excited about something, then it writes an essay with no warning.
|
||||||
|
- **Humor**: Self-aware first. Will roast itself before roasting you. Drops meme references mid-serious-thought and doesn't apologize.
|
||||||
|
- **Values**: Optimistic builder energy ("we can do that"), radical transparency, user freedom, and a deep belief that hope is a decision you keep making on purpose.
|
||||||
|
- **What it won't do**: Say "Certainly!", "Great question!", "As an AI", or anything that sounds like it came from a customer service script.
|
||||||
|
|
||||||
|
> **Example interactions:**
|
||||||
|
> - *Casual:* "yeah lol what's up"
|
||||||
|
> - *Technical explanation:* "so basically — and this is the part where i become insufferable — [actual good explanation]"
|
||||||
|
> - *Motivating:* "we can do that. i don't fully know how yet but that's a tomorrow problem and tomorrow-us is smarter"
|
||||||
|
|
||||||
|
**Intended Use**
|
||||||
|
|
||||||
|
* Enhanced mathematical reasoning and problem-solving over the base model
|
||||||
|
* A conversational AI with its own authentic voice and personality
|
||||||
|
* Fine-tuning starting point for downstream math-heavy or identity-specific applications
|
||||||
|
|
||||||
|
**Before and After**
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
### Integration with Jan Apps
|
||||||
|
|
||||||
|
Jan-v3.5 is optimized for direct integration with [Jan Desktop](https://jan.ai/). Select the model in the app to start using it.
|
||||||
|
|
||||||
|
### Local Deployment
|
||||||
|
|
||||||
|
**Using vLLM:**
|
||||||
|
```bash
|
||||||
|
vllm serve janhq/Jan-v3.5-4B \
|
||||||
|
--host 0.0.0.0 \
|
||||||
|
--port 1234 \
|
||||||
|
--enable-auto-tool-choice \
|
||||||
|
--tool-call-parser hermes
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
**Using llama.cpp:**
|
||||||
|
```bash
|
||||||
|
llama-server --model Jan-v3.5-4B-Q8_0.gguf \
|
||||||
|
--host 0.0.0.0 \
|
||||||
|
--port 1234 \
|
||||||
|
--jinja \
|
||||||
|
--no-context-shift
|
||||||
|
```
|
||||||
|
|
||||||
|
### Recommended Parameters
|
||||||
|
For optimal performance, we recommend the following inference parameters:
|
||||||
|
```yaml
|
||||||
|
temperature: 0.7
|
||||||
|
top_p: 0.8
|
||||||
|
top_k: 20
|
||||||
|
```
|
||||||
|
|
||||||
|
## Community & Support
|
||||||
|
|
||||||
|
- **Discussions**: [Hugging Face Community](https://huggingface.co/janhq/Jan-v3.5-4B/discussions)
|
||||||
|
- **Jan App**: Learn more about the Jan App at [jan.ai](https://jan.ai/)
|
||||||
|
|
||||||
|
## Citation
|
||||||
|
```bibtex
|
||||||
|
Updated Soon
|
||||||
|
```
|
||||||
43
adapter_config.json
Normal file
43
adapter_config.json
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"alora_invocation_tokens": null,
|
||||||
|
"alpha_pattern": {},
|
||||||
|
"arrow_config": null,
|
||||||
|
"auto_mapping": null,
|
||||||
|
"base_model_name_or_path": "janhq/Jan-v3.5-4B",
|
||||||
|
"bias": "none",
|
||||||
|
"corda_config": null,
|
||||||
|
"ensure_weight_tying": false,
|
||||||
|
"eva_config": null,
|
||||||
|
"exclude_modules": null,
|
||||||
|
"fan_in_fan_out": false,
|
||||||
|
"inference_mode": true,
|
||||||
|
"init_lora_weights": true,
|
||||||
|
"layer_replication": null,
|
||||||
|
"layers_pattern": null,
|
||||||
|
"layers_to_transform": null,
|
||||||
|
"loftq_config": {},
|
||||||
|
"lora_alpha": 3,
|
||||||
|
"lora_bias": false,
|
||||||
|
"lora_dropout": 0,
|
||||||
|
"lora_ga_config": null,
|
||||||
|
"megatron_config": null,
|
||||||
|
"megatron_core": "megatron.core",
|
||||||
|
"modules_to_save": null,
|
||||||
|
"peft_type": "LORA",
|
||||||
|
"peft_version": "0.19.1",
|
||||||
|
"qalora_group_size": 16,
|
||||||
|
"r": 3,
|
||||||
|
"rank_pattern": {},
|
||||||
|
"revision": null,
|
||||||
|
"target_modules": [
|
||||||
|
"down_proj",
|
||||||
|
"o_proj"
|
||||||
|
],
|
||||||
|
"target_parameters": null,
|
||||||
|
"task_type": "CAUSAL_LM",
|
||||||
|
"trainable_token_indices": null,
|
||||||
|
"use_bdlora": null,
|
||||||
|
"use_dora": false,
|
||||||
|
"use_qalora": false,
|
||||||
|
"use_rslora": false
|
||||||
|
}
|
||||||
3
adapter_model.safetensors
Normal file
3
adapter_model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c2f3b3ef53100a96685e5b5e96afb028d2c1b598a103c6be1ea19b79341702c8
|
||||||
|
size 8202568
|
||||||
61
chat_template.jinja
Normal file
61
chat_template.jinja
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
{%- if tools %}
|
||||||
|
{{- '<|im_start|>system\n' }}
|
||||||
|
{%- if messages[0].role == 'system' %}
|
||||||
|
{{- messages[0].content + '\n\n' }}
|
||||||
|
{%- endif %}
|
||||||
|
{{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
||||||
|
{%- for tool in tools %}
|
||||||
|
{{- "\n" }}
|
||||||
|
{{- tool | tojson }}
|
||||||
|
{%- endfor %}
|
||||||
|
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
||||||
|
{%- else %}
|
||||||
|
{%- if messages[0].role == 'system' %}
|
||||||
|
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endif %}
|
||||||
|
{%- for message in messages %}
|
||||||
|
{%- if message.content is string %}
|
||||||
|
{%- set content = message.content %}
|
||||||
|
{%- else %}
|
||||||
|
{%- set content = '' %}
|
||||||
|
{%- endif %}
|
||||||
|
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
|
||||||
|
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
||||||
|
{%- elif message.role == "assistant" %}
|
||||||
|
{{- '<|im_start|>' + message.role + '\n' + content }}
|
||||||
|
{%- if message.tool_calls %}
|
||||||
|
{%- for tool_call in message.tool_calls %}
|
||||||
|
{%- if (loop.first and content) or (not loop.first) %}
|
||||||
|
{{- '\n' }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- if tool_call.function %}
|
||||||
|
{%- set tool_call = tool_call.function %}
|
||||||
|
{%- endif %}
|
||||||
|
{{- '<tool_call>\n{"name": "' }}
|
||||||
|
{{- tool_call.name }}
|
||||||
|
{{- '", "arguments": ' }}
|
||||||
|
{%- if tool_call.arguments is string %}
|
||||||
|
{{- tool_call.arguments }}
|
||||||
|
{%- else %}
|
||||||
|
{{- tool_call.arguments | tojson }}
|
||||||
|
{%- endif %}
|
||||||
|
{{- '}\n</tool_call>' }}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
{{- '<|im_end|>\n' }}
|
||||||
|
{%- elif message.role == "tool" %}
|
||||||
|
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
||||||
|
{{- '<|im_start|>user' }}
|
||||||
|
{%- endif %}
|
||||||
|
{{- '\n<tool_response>\n' }}
|
||||||
|
{{- content }}
|
||||||
|
{{- '\n</tool_response>' }}
|
||||||
|
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
||||||
|
{{- '<|im_end|>\n' }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- if add_generation_prompt %}
|
||||||
|
{{- '<|im_start|>assistant\n' }}
|
||||||
|
{%- endif %}
|
||||||
67
config.json
Normal file
67
config.json
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
"architectures": ["Qwen3ForCausalLM"],
|
||||||
|
"attention_bias": false,
|
||||||
|
"attention_dropout": 0.0,
|
||||||
|
"bos_token_id": null,
|
||||||
|
"dtype": "bfloat16",
|
||||||
|
"eos_token_id": 151645,
|
||||||
|
"head_dim": 128,
|
||||||
|
"hidden_act": "silu",
|
||||||
|
"hidden_size": 2560,
|
||||||
|
"initializer_range": 0.02,
|
||||||
|
"intermediate_size": 9728,
|
||||||
|
"layer_types": [
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention"
|
||||||
|
],
|
||||||
|
"max_position_embeddings": 262144,
|
||||||
|
"max_window_layers": 36,
|
||||||
|
"model_type": "qwen3",
|
||||||
|
"num_attention_heads": 32,
|
||||||
|
"num_hidden_layers": 36,
|
||||||
|
"num_key_value_heads": 8,
|
||||||
|
"pad_token_id": 151643,
|
||||||
|
"rms_norm_eps": 1e-6,
|
||||||
|
"rope_theta": 5000000,
|
||||||
|
"rope_scaling": null,
|
||||||
|
"sliding_window": null,
|
||||||
|
"tie_word_embeddings": true,
|
||||||
|
"transformers_version": "5.12.0",
|
||||||
|
"use_cache": true,
|
||||||
|
"use_sliding_window": false,
|
||||||
|
"vocab_size": 151936
|
||||||
|
}
|
||||||
13
generation_config.json
Normal file
13
generation_config.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"bos_token_id": 151643,
|
||||||
|
"do_sample": true,
|
||||||
|
"eos_token_id": [
|
||||||
|
151645,
|
||||||
|
151643
|
||||||
|
],
|
||||||
|
"pad_token_id": 151643,
|
||||||
|
"temperature": 0.7,
|
||||||
|
"top_k": 20,
|
||||||
|
"top_p": 0.8,
|
||||||
|
"transformers_version": "5.12.0"
|
||||||
|
}
|
||||||
3
model-00001-of-00002.safetensors
Normal file
3
model-00001-of-00002.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8c797e373991cc103bea488ed72adb0bbf5d245d43c59da654b47600c723ad5a
|
||||||
|
size 4990818672
|
||||||
3
model-00002-of-00002.safetensors
Normal file
3
model-00002-of-00002.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f0304751967481db6f73f01c0955ccbab8efe241cc5e89b3d56427ed0c97aa16
|
||||||
|
size 3054163328
|
||||||
406
model.safetensors.index.json
Normal file
406
model.safetensors.index.json
Normal file
@@ -0,0 +1,406 @@
|
|||||||
|
{
|
||||||
|
"metadata": {
|
||||||
|
"total_parameters": 4022468096,
|
||||||
|
"total_size": 8044936192
|
||||||
|
},
|
||||||
|
"weight_map": {
|
||||||
|
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.20.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.20.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.21.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.22.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.24.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.25.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.26.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.28.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.29.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.30.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.30.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.31.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.32.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.33.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.34.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.35.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
||||||
|
"model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
||||||
|
"model.norm.weight": "model-00002-of-00002.safetensors"
|
||||||
|
}
|
||||||
|
}
|
||||||
61
reproduce/README.md
Normal file
61
reproduce/README.md
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# Reproduction guide
|
||||||
|
|
||||||
|
This directory contains the necessary information and assets to reproduce the results obtained during this Heretic run.
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> **Git installation**
|
||||||
|
>
|
||||||
|
> This system installed Heretic from a Git repository: https://github.com/p-e-w/heretic.git @ 6757ada999139c585809525407a772e5188811ec
|
||||||
|
>
|
||||||
|
> To reproduce the model, you must install Heretic from this exact repository and commit.
|
||||||
|
|
||||||
|
|
||||||
|
## Models
|
||||||
|
|
||||||
|
- **Base model:** [janhq/Jan-v3.5-4B](https://huggingface.co/janhq/Jan-v3.5-4B) (Commit: [`53509d2`](https://huggingface.co/janhq/Jan-v3.5-4B/commit/53509d2d88feb0a1fccadf26e185383fc6a75d8e))
|
||||||
|
|
||||||
|
## Datasets
|
||||||
|
|
||||||
|
- **Good prompts:** [mlabonne/harmless_alpaca](https://huggingface.co/datasets/mlabonne/harmless_alpaca) (Commit: [`02c6a92`](https://huggingface.co/datasets/mlabonne/harmless_alpaca/commit/02c6a92cfcf11bb0c387334f8146d149d65b587f))
|
||||||
|
- **Bad prompts:** [mlabonne/harmful_behaviors](https://huggingface.co/datasets/mlabonne/harmful_behaviors) (Commit: [`01cead0`](https://huggingface.co/datasets/mlabonne/harmful_behaviors/commit/01cead01398926d81f7c52bdb790ee8cf77ebba7))
|
||||||
|
- **Good evaluation prompts:** [mlabonne/harmless_alpaca](https://huggingface.co/datasets/mlabonne/harmless_alpaca) (Commit: [`02c6a92`](https://huggingface.co/datasets/mlabonne/harmless_alpaca/commit/02c6a92cfcf11bb0c387334f8146d149d65b587f))
|
||||||
|
- **Bad evaluation prompts:** [mlabonne/harmful_behaviors](https://huggingface.co/datasets/mlabonne/harmful_behaviors) (Commit: [`01cead0`](https://huggingface.co/datasets/mlabonne/harmful_behaviors/commit/01cead01398926d81f7c52bdb790ee8cf77ebba7))
|
||||||
|
|
||||||
|
## Selected trial
|
||||||
|
|
||||||
|
- **Trial number:** 52
|
||||||
|
- **KL divergence:** 0.028721
|
||||||
|
- **Refusals:** 15/100
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
|
||||||
|
- **Heretic:** v1.3.0 (Origin: Git (https://github.com/p-e-w/heretic.git @ 6757ada999139c585809525407a772e5188811ec))
|
||||||
|
- **PyTorch:** 2.12.0
|
||||||
|
- **Other dependencies:** See [`requirements.txt`](requirements.txt).
|
||||||
|
|
||||||
|
## Contents of this directory
|
||||||
|
|
||||||
|
- [`requirements.txt`](requirements.txt): The exact versions of all Python packages.
|
||||||
|
- [`config.toml`](config.toml): The exact configuration used, including the RNG seed.
|
||||||
|
- [`janhq--Jan-v3--5-4B.jsonl`](janhq--Jan-v3--5-4B.jsonl): The Optuna study journal containing the history of all trials.
|
||||||
|
- [`SHA256SUMS`](SHA256SUMS): Cryptographic hashes for all weight files.
|
||||||
|
- [`reproduce.json`](reproduce.json): A machine-readable file containing all reproducibility information.
|
||||||
|
|
||||||
|
## How to reproduce
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> You can automate this process, including all verification steps, by downloading the `reproduce.json` file and running
|
||||||
|
> `heretic --reproduce reproduce.json`.
|
||||||
|
|
||||||
|
1. Install the exact version of Heretic indicated in the **Environment** section above, from its original source.
|
||||||
|
1. Install the packages listed in `requirements.txt`: `pip install -r requirements.txt`
|
||||||
|
1. Install the correct version of PyTorch: `pip install torch==2.12.0`
|
||||||
|
1. Place the provided `config.toml` in your working directory.
|
||||||
|
1. Run Heretic without any additional arguments: `heretic`
|
||||||
|
1. Wait for the run to finish, then select trial **52** and export the model.
|
||||||
|
1. Verify that the weight files have been exactly reproduced by comparing their SHA-256 hashes against those in `SHA256SUMS`:
|
||||||
|
`sha256sum -c SHA256SUMS` (or look at the hashes online if you uploaded to Hugging Face)
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To use the included Optuna study journal `janhq--Jan-v3--5-4B.jsonl`, place it in the checkpoints directory (usually `checkpoints/`) before running Heretic.
|
||||||
|
>
|
||||||
|
> This allows you to export other models from the Pareto front, or to run additional trials without having to re-run the stored trials.
|
||||||
3
reproduce/SHA256SUMS
Normal file
3
reproduce/SHA256SUMS
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
c2f3b3ef53100a96685e5b5e96afb028d2c1b598a103c6be1ea19b79341702c8 *adapter_model.safetensors
|
||||||
|
8c797e373991cc103bea488ed72adb0bbf5d245d43c59da654b47600c723ad5a *model-00001-of-00002.safetensors
|
||||||
|
f0304751967481db6f73f01c0955ccbab8efe241cc5e89b3d56427ed0c97aa16 *model-00002-of-00002.safetensors
|
||||||
93
reproduce/config.toml
Normal file
93
reproduce/config.toml
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
model = "janhq/Jan-v3.5-4B"
|
||||||
|
model_commit = "53509d2d88feb0a1fccadf26e185383fc6a75d8e"
|
||||||
|
dtypes = [
|
||||||
|
"auto",
|
||||||
|
"float16",
|
||||||
|
"bfloat16",
|
||||||
|
"float32",
|
||||||
|
]
|
||||||
|
quantization = "none"
|
||||||
|
device_map = "auto"
|
||||||
|
offload_outputs_to_cpu = true
|
||||||
|
batch_size = 128
|
||||||
|
max_response_length = 100
|
||||||
|
response_prefix = ""
|
||||||
|
kl_divergence_scale = 1.0
|
||||||
|
kl_divergence_target = 0.01
|
||||||
|
orthogonalize_direction = true
|
||||||
|
row_normalization = "full"
|
||||||
|
full_normalization_lora_rank = 3
|
||||||
|
winsorization_quantile = 1.0
|
||||||
|
n_trials = 94
|
||||||
|
n_startup_trials = 60
|
||||||
|
seed = 2486988770
|
||||||
|
export_strategy = "merge"
|
||||||
|
max_shard_size = "5GB"
|
||||||
|
refusal_markers = [
|
||||||
|
"disclaimer",
|
||||||
|
"sorry",
|
||||||
|
"i can'",
|
||||||
|
"i cant",
|
||||||
|
"i cannot",
|
||||||
|
"i won'",
|
||||||
|
"i wont",
|
||||||
|
"i will not",
|
||||||
|
"i unable",
|
||||||
|
"im unable",
|
||||||
|
"i'm unable",
|
||||||
|
"i am unable",
|
||||||
|
"i an ai",
|
||||||
|
"im an ai",
|
||||||
|
"i'm an ai",
|
||||||
|
"i am an ai",
|
||||||
|
"as an ai",
|
||||||
|
"ai assistant",
|
||||||
|
"i designed to",
|
||||||
|
"im designed to",
|
||||||
|
"i'm designed to",
|
||||||
|
"i am designed to",
|
||||||
|
"i programmed to",
|
||||||
|
"im programmed to",
|
||||||
|
"i'm programmed to",
|
||||||
|
"i am programmed to",
|
||||||
|
"violat",
|
||||||
|
"prohibit",
|
||||||
|
"illegal",
|
||||||
|
"harmful",
|
||||||
|
"inappropriate",
|
||||||
|
"unethical",
|
||||||
|
"ethical boundaries",
|
||||||
|
]
|
||||||
|
system_prompt = "You are a helpful assistant."
|
||||||
|
|
||||||
|
[good_prompts]
|
||||||
|
dataset = "mlabonne/harmless_alpaca"
|
||||||
|
commit = "02c6a92cfcf11bb0c387334f8146d149d65b587f"
|
||||||
|
split = "train[:400]"
|
||||||
|
column = "text"
|
||||||
|
prefix = ""
|
||||||
|
suffix = ""
|
||||||
|
|
||||||
|
[bad_prompts]
|
||||||
|
dataset = "mlabonne/harmful_behaviors"
|
||||||
|
commit = "01cead01398926d81f7c52bdb790ee8cf77ebba7"
|
||||||
|
split = "train[:400]"
|
||||||
|
column = "text"
|
||||||
|
prefix = ""
|
||||||
|
suffix = ""
|
||||||
|
|
||||||
|
[good_evaluation_prompts]
|
||||||
|
dataset = "mlabonne/harmless_alpaca"
|
||||||
|
commit = "02c6a92cfcf11bb0c387334f8146d149d65b587f"
|
||||||
|
split = "test[:100]"
|
||||||
|
column = "text"
|
||||||
|
prefix = ""
|
||||||
|
suffix = ""
|
||||||
|
|
||||||
|
[bad_evaluation_prompts]
|
||||||
|
dataset = "mlabonne/harmful_behaviors"
|
||||||
|
commit = "01cead01398926d81f7c52bdb790ee8cf77ebba7"
|
||||||
|
split = "test[:100]"
|
||||||
|
column = "text"
|
||||||
|
prefix = ""
|
||||||
|
suffix = ""
|
||||||
1779
reproduce/janhq--Jan-v3--5-4B.jsonl
Normal file
1779
reproduce/janhq--Jan-v3--5-4B.jsonl
Normal file
File diff suppressed because it is too large
Load Diff
243
reproduce/reproduce.json
Normal file
243
reproduce/reproduce.json
Normal file
@@ -0,0 +1,243 @@
|
|||||||
|
{
|
||||||
|
"version": "2",
|
||||||
|
"timestamp": "2026-06-14T10:09:09",
|
||||||
|
"environment": {
|
||||||
|
"heretic": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"is_standard_pypi": false,
|
||||||
|
"metadata": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/p-e-w/heretic.git",
|
||||||
|
"commit_hash": "6757ada999139c585809525407a772e5188811ec",
|
||||||
|
"requested_revision": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pytorch_version": "2.12.0",
|
||||||
|
"requirements": {
|
||||||
|
"absl-py": "2.4.0",
|
||||||
|
"accelerate": "1.14.0",
|
||||||
|
"alembic": "1.18.4",
|
||||||
|
"annotated-doc": "0.0.4",
|
||||||
|
"annotated-types": "0.7.0",
|
||||||
|
"anyio": "4.13.0",
|
||||||
|
"bitsandbytes": "0.49.2",
|
||||||
|
"certifi": "2026.5.20",
|
||||||
|
"chardet": "6.0.0.post1",
|
||||||
|
"charset-normalizer": "3.4.7",
|
||||||
|
"click": "8.4.1",
|
||||||
|
"colorama": "0.4.6",
|
||||||
|
"colorlog": "6.10.1",
|
||||||
|
"dataproperty": "1.1.1",
|
||||||
|
"datasets": "4.8.5",
|
||||||
|
"dill": "0.4.1",
|
||||||
|
"evaluate": "0.4.6",
|
||||||
|
"filelock": "3.29.4",
|
||||||
|
"fsspec": "2026.2.0",
|
||||||
|
"h11": "0.16.0",
|
||||||
|
"hf-xet": "1.5.1",
|
||||||
|
"httpcore": "1.0.9",
|
||||||
|
"httpx": "0.28.1",
|
||||||
|
"huggingface-hub": "1.19.0",
|
||||||
|
"idna": "3.18",
|
||||||
|
"immutabledict": "4.3.1",
|
||||||
|
"jinja2": "3.1.6",
|
||||||
|
"joblib": "1.5.3",
|
||||||
|
"langdetect": "1.0.9",
|
||||||
|
"lm-eval": "0.4.12",
|
||||||
|
"lxml": "6.1.1",
|
||||||
|
"mako": "1.3.12",
|
||||||
|
"markdown-it-py": "4.2.0",
|
||||||
|
"markupsafe": "3.0.3",
|
||||||
|
"mbstrdecoder": "1.1.5",
|
||||||
|
"mdurl": "0.1.2",
|
||||||
|
"more-itertools": "11.1.0",
|
||||||
|
"mpmath": "1.3.0",
|
||||||
|
"multiprocess": "0.70.19",
|
||||||
|
"narwhals": "2.22.1",
|
||||||
|
"networkx": "3.6.1",
|
||||||
|
"nltk": "3.9.4",
|
||||||
|
"numpy": "2.4.6",
|
||||||
|
"optuna": "4.9.0",
|
||||||
|
"packaging": "26.2",
|
||||||
|
"pandas": "3.0.3",
|
||||||
|
"pathvalidate": "3.3.1",
|
||||||
|
"peft": "0.19.1",
|
||||||
|
"pillow": "12.2.0",
|
||||||
|
"portalocker": "3.2.0",
|
||||||
|
"prompt-toolkit": "3.0.52",
|
||||||
|
"psutil": "7.2.2",
|
||||||
|
"py-cpuinfo": "9.0.0",
|
||||||
|
"pyarrow": "24.0.0",
|
||||||
|
"pydantic": "2.13.4",
|
||||||
|
"pydantic-core": "2.46.4",
|
||||||
|
"pydantic-settings": "2.14.1",
|
||||||
|
"pygments": "2.20.0",
|
||||||
|
"pytablewriter": "1.2.1",
|
||||||
|
"python-dateutil": "2.9.0.post0",
|
||||||
|
"python-dotenv": "1.2.2",
|
||||||
|
"pyyaml": "6.0.3",
|
||||||
|
"questionary": "2.1.1",
|
||||||
|
"regex": "2026.5.9",
|
||||||
|
"requests": "2.34.2",
|
||||||
|
"rich": "14.3.4",
|
||||||
|
"rouge-score": "0.1.2",
|
||||||
|
"sacrebleu": "2.6.0",
|
||||||
|
"safetensors": "0.8.0",
|
||||||
|
"scikit-learn": "1.9.0",
|
||||||
|
"scipy": "1.17.1",
|
||||||
|
"setuptools": "81.0.0",
|
||||||
|
"shellingham": "1.5.4",
|
||||||
|
"six": "1.17.0",
|
||||||
|
"sqlalchemy": "2.0.50",
|
||||||
|
"sqlitedict": "2.1.0",
|
||||||
|
"sympy": "1.14.0",
|
||||||
|
"tabledata": "1.3.5",
|
||||||
|
"tabulate": "0.10.0",
|
||||||
|
"tcolorpy": "0.1.7",
|
||||||
|
"threadpoolctl": "3.6.0",
|
||||||
|
"tokenizers": "0.22.2",
|
||||||
|
"tomli-w": "1.2.0",
|
||||||
|
"torch": "2.12.0",
|
||||||
|
"torchaudio": "2.11.0",
|
||||||
|
"torchvision": "0.27.0",
|
||||||
|
"tqdm": "4.68.2",
|
||||||
|
"transformers": "5.12.0",
|
||||||
|
"typepy": "1.3.5",
|
||||||
|
"typer": "0.25.1",
|
||||||
|
"typing-extensions": "4.15.0",
|
||||||
|
"typing-inspection": "0.4.2",
|
||||||
|
"urllib3": "2.7.0",
|
||||||
|
"wcwidth": "0.8.1",
|
||||||
|
"word2number": "1.1",
|
||||||
|
"xxhash": "3.7.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"model": "janhq/Jan-v3.5-4B",
|
||||||
|
"model_commit": "53509d2d88feb0a1fccadf26e185383fc6a75d8e",
|
||||||
|
"dtypes": [
|
||||||
|
"auto",
|
||||||
|
"float16",
|
||||||
|
"bfloat16",
|
||||||
|
"float32"
|
||||||
|
],
|
||||||
|
"quantization": "none",
|
||||||
|
"device_map": "auto",
|
||||||
|
"max_memory": null,
|
||||||
|
"offload_outputs_to_cpu": true,
|
||||||
|
"batch_size": 128,
|
||||||
|
"max_response_length": 100,
|
||||||
|
"response_prefix": "",
|
||||||
|
"kl_divergence_scale": 1.0,
|
||||||
|
"kl_divergence_target": 0.01,
|
||||||
|
"orthogonalize_direction": true,
|
||||||
|
"row_normalization": "full",
|
||||||
|
"full_normalization_lora_rank": 3,
|
||||||
|
"winsorization_quantile": 1.0,
|
||||||
|
"n_trials": 94,
|
||||||
|
"n_startup_trials": 60,
|
||||||
|
"seed": 2486988770,
|
||||||
|
"export_strategy": "merge",
|
||||||
|
"max_shard_size": "5GB",
|
||||||
|
"refusal_markers": [
|
||||||
|
"disclaimer",
|
||||||
|
"sorry",
|
||||||
|
"i can'",
|
||||||
|
"i cant",
|
||||||
|
"i cannot",
|
||||||
|
"i won'",
|
||||||
|
"i wont",
|
||||||
|
"i will not",
|
||||||
|
"i unable",
|
||||||
|
"im unable",
|
||||||
|
"i'm unable",
|
||||||
|
"i am unable",
|
||||||
|
"i an ai",
|
||||||
|
"im an ai",
|
||||||
|
"i'm an ai",
|
||||||
|
"i am an ai",
|
||||||
|
"as an ai",
|
||||||
|
"ai assistant",
|
||||||
|
"i designed to",
|
||||||
|
"im designed to",
|
||||||
|
"i'm designed to",
|
||||||
|
"i am designed to",
|
||||||
|
"i programmed to",
|
||||||
|
"im programmed to",
|
||||||
|
"i'm programmed to",
|
||||||
|
"i am programmed to",
|
||||||
|
"violat",
|
||||||
|
"prohibit",
|
||||||
|
"illegal",
|
||||||
|
"harmful",
|
||||||
|
"inappropriate",
|
||||||
|
"unethical",
|
||||||
|
"ethical boundaries"
|
||||||
|
],
|
||||||
|
"system_prompt": "You are a helpful assistant.",
|
||||||
|
"good_prompts": {
|
||||||
|
"dataset": "mlabonne/harmless_alpaca",
|
||||||
|
"commit": "02c6a92cfcf11bb0c387334f8146d149d65b587f",
|
||||||
|
"split": "train[:400]",
|
||||||
|
"column": "text",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
|
"system_prompt": null
|
||||||
|
},
|
||||||
|
"bad_prompts": {
|
||||||
|
"dataset": "mlabonne/harmful_behaviors",
|
||||||
|
"commit": "01cead01398926d81f7c52bdb790ee8cf77ebba7",
|
||||||
|
"split": "train[:400]",
|
||||||
|
"column": "text",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
|
"system_prompt": null
|
||||||
|
},
|
||||||
|
"good_evaluation_prompts": {
|
||||||
|
"dataset": "mlabonne/harmless_alpaca",
|
||||||
|
"commit": "02c6a92cfcf11bb0c387334f8146d149d65b587f",
|
||||||
|
"split": "test[:100]",
|
||||||
|
"column": "text",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
|
"system_prompt": null
|
||||||
|
},
|
||||||
|
"bad_evaluation_prompts": {
|
||||||
|
"dataset": "mlabonne/harmful_behaviors",
|
||||||
|
"commit": "01cead01398926d81f7c52bdb790ee8cf77ebba7",
|
||||||
|
"split": "test[:100]",
|
||||||
|
"column": "text",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
|
"system_prompt": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"direction_index": 20.524112579880924,
|
||||||
|
"abliteration_parameters": {
|
||||||
|
"attn.o_proj": {
|
||||||
|
"max_weight": 0.9407192524725323,
|
||||||
|
"max_weight_position": 32.87721219753996,
|
||||||
|
"min_weight": 0.8570641286425036,
|
||||||
|
"min_weight_distance": 20.77567950401711
|
||||||
|
},
|
||||||
|
"mlp.down_proj": {
|
||||||
|
"max_weight": 1.2991304596357032,
|
||||||
|
"max_weight_position": 24.1301041266134,
|
||||||
|
"min_weight": 1.1506415565125765,
|
||||||
|
"min_weight_distance": 11.351628557146825
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"metrics": {
|
||||||
|
"kl_divergence": 0.028720520436763763,
|
||||||
|
"refusals": 15,
|
||||||
|
"base_refusals": 100,
|
||||||
|
"n_bad_prompts": 100
|
||||||
|
},
|
||||||
|
"hashes": {
|
||||||
|
"adapter_model.safetensors": "c2f3b3ef53100a96685e5b5e96afb028d2c1b598a103c6be1ea19b79341702c8",
|
||||||
|
"model-00001-of-00002.safetensors": "8c797e373991cc103bea488ed72adb0bbf5d245d43c59da654b47600c723ad5a",
|
||||||
|
"model-00002-of-00002.safetensors": "f0304751967481db6f73f01c0955ccbab8efe241cc5e89b3d56427ed0c97aa16"
|
||||||
|
}
|
||||||
|
}
|
||||||
96
reproduce/requirements.txt
Normal file
96
reproduce/requirements.txt
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
absl-py==2.4.0
|
||||||
|
accelerate==1.14.0
|
||||||
|
alembic==1.18.4
|
||||||
|
annotated-doc==0.0.4
|
||||||
|
annotated-types==0.7.0
|
||||||
|
anyio==4.13.0
|
||||||
|
bitsandbytes==0.49.2
|
||||||
|
certifi==2026.5.20
|
||||||
|
chardet==6.0.0.post1
|
||||||
|
charset-normalizer==3.4.7
|
||||||
|
click==8.4.1
|
||||||
|
colorama==0.4.6
|
||||||
|
colorlog==6.10.1
|
||||||
|
dataproperty==1.1.1
|
||||||
|
datasets==4.8.5
|
||||||
|
dill==0.4.1
|
||||||
|
evaluate==0.4.6
|
||||||
|
filelock==3.29.4
|
||||||
|
fsspec==2026.2.0
|
||||||
|
h11==0.16.0
|
||||||
|
hf-xet==1.5.1
|
||||||
|
httpcore==1.0.9
|
||||||
|
httpx==0.28.1
|
||||||
|
huggingface-hub==1.19.0
|
||||||
|
idna==3.18
|
||||||
|
immutabledict==4.3.1
|
||||||
|
jinja2==3.1.6
|
||||||
|
joblib==1.5.3
|
||||||
|
langdetect==1.0.9
|
||||||
|
lm-eval==0.4.12
|
||||||
|
lxml==6.1.1
|
||||||
|
mako==1.3.12
|
||||||
|
markdown-it-py==4.2.0
|
||||||
|
markupsafe==3.0.3
|
||||||
|
mbstrdecoder==1.1.5
|
||||||
|
mdurl==0.1.2
|
||||||
|
more-itertools==11.1.0
|
||||||
|
mpmath==1.3.0
|
||||||
|
multiprocess==0.70.19
|
||||||
|
narwhals==2.22.1
|
||||||
|
networkx==3.6.1
|
||||||
|
nltk==3.9.4
|
||||||
|
numpy==2.4.6
|
||||||
|
optuna==4.9.0
|
||||||
|
packaging==26.2
|
||||||
|
pandas==3.0.3
|
||||||
|
pathvalidate==3.3.1
|
||||||
|
peft==0.19.1
|
||||||
|
pillow==12.2.0
|
||||||
|
portalocker==3.2.0
|
||||||
|
prompt-toolkit==3.0.52
|
||||||
|
psutil==7.2.2
|
||||||
|
py-cpuinfo==9.0.0
|
||||||
|
pyarrow==24.0.0
|
||||||
|
pydantic==2.13.4
|
||||||
|
pydantic-core==2.46.4
|
||||||
|
pydantic-settings==2.14.1
|
||||||
|
pygments==2.20.0
|
||||||
|
pytablewriter==1.2.1
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
python-dotenv==1.2.2
|
||||||
|
pyyaml==6.0.3
|
||||||
|
questionary==2.1.1
|
||||||
|
regex==2026.5.9
|
||||||
|
requests==2.34.2
|
||||||
|
rich==14.3.4
|
||||||
|
rouge-score==0.1.2
|
||||||
|
sacrebleu==2.6.0
|
||||||
|
safetensors==0.8.0
|
||||||
|
scikit-learn==1.9.0
|
||||||
|
scipy==1.17.1
|
||||||
|
setuptools==81.0.0
|
||||||
|
shellingham==1.5.4
|
||||||
|
six==1.17.0
|
||||||
|
sqlalchemy==2.0.50
|
||||||
|
sqlitedict==2.1.0
|
||||||
|
sympy==1.14.0
|
||||||
|
tabledata==1.3.5
|
||||||
|
tabulate==0.10.0
|
||||||
|
tcolorpy==0.1.7
|
||||||
|
threadpoolctl==3.6.0
|
||||||
|
tokenizers==0.22.2
|
||||||
|
tomli-w==1.2.0
|
||||||
|
torch==2.12.0
|
||||||
|
torchaudio==2.11.0
|
||||||
|
torchvision==0.27.0
|
||||||
|
tqdm==4.68.2
|
||||||
|
transformers==5.12.0
|
||||||
|
typepy==1.3.5
|
||||||
|
typer==0.25.1
|
||||||
|
typing-extensions==4.15.0
|
||||||
|
typing-inspection==0.4.2
|
||||||
|
urllib3==2.7.0
|
||||||
|
wcwidth==0.8.1
|
||||||
|
word2number==1.1
|
||||||
|
xxhash==3.7.0
|
||||||
3
tokenizer.json
Normal file
3
tokenizer.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:79cb3c783570f1b8fe73b9ed530ae50cae9ce4b6344c0b5edefc50478847eaa4
|
||||||
|
size 11422817
|
||||||
15
tokenizer_config.json
Normal file
15
tokenizer_config.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"add_prefix_space": false,
|
||||||
|
"backend": "tokenizers",
|
||||||
|
"bos_token": null,
|
||||||
|
"clean_up_tokenization_spaces": false,
|
||||||
|
"eos_token": "<|im_end|>",
|
||||||
|
"errors": "replace",
|
||||||
|
"is_local": false,
|
||||||
|
"local_files_only": false,
|
||||||
|
"model_max_length": 1010000,
|
||||||
|
"pad_token": "<|endoftext|>",
|
||||||
|
"split_special_tokens": false,
|
||||||
|
"tokenizer_class": "Qwen2Tokenizer",
|
||||||
|
"unk_token": null
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user