OBLITERATUS: abliterated infly/OpenCoder-8B-Base (advanced)
Browse filesFiles changed (17)
- abliteration_metadata.jsonAdded+58
- added_tokens.jsonAdded+44
- chat_template.jinjaAdded+6
- config.jsonAdded+32
- generation_config.jsonAdded+7
- model-00001-of-00008.safetensorsAdded+3
- model-00002-of-00008.safetensorsAdded+3
- model-00003-of-00008.safetensorsAdded+3
- model-00004-of-00008.safetensorsAdded+3
- model-00005-of-00008.safetensorsAdded+3
- model-00006-of-00008.safetensorsAdded+3
- model-00007-of-00008.safetensorsAdded+3
- model-00008-of-00008.safetensorsAdded+3
- model.safetensors.index.jsonAdded+299
- tokenization_inflm.pyAdded+292
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+394
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ "source_model": "infly/OpenCoder-8B-Base", "technique": "refusal_direction_ablation", "method": "advanced", "method_config": { "n_directions": 4, "norm_preserve": true, "regularization": 0.98, "refinement_passes": 10, "project_biases": true, "use_chat_template": true, "use_whitened_svd": false, "true_iterative_refinement": true, "winsorize_activations": false, "float_layer_interpolation": false, "cot_aware": false, "use_kl_optimization": false, "use_lora_ablation": false, "spectral_cascade": true, "spectral_bands": 8, "spectral_threshold": 0.01 }, "references": [ "Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (NeurIPS 2024)", "Gabliteration: SVD-based multi-direction extraction (arXiv:2512.18901)", "Norm-Preserving Biprojected Abliteration (grimjim, 2025)", "Young, Comparative Analysis of LLM Abliteration Methods (arXiv:2512.13655)", "Joad et al., More to Refusal than a Single Direction (2026)", "Heretic (p-e-w, 2025): Bayesian optimization, LoRA-mediated ablation, winsorization", "OBLITERATUS: Whitened SVD, EGA, CoT-aware, KL co-optimization, float interpolation (novel)" ], "strong_layers": [ 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21 ], "n_harmful_prompts": 512, "n_harmless_prompts": 512, "quality_metrics": { "perplexity": Infinity, "coherence": 0.0, "refusal_rate": 0.0, "kl_divergence": Infinity, "spectral_certification": null }, "kl_contributions": {}, "cot_preserved_layers": [], "float_layer_weights": {}, "lora_adapters_saved": false}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "<code_to_intermediate>": 96521, "<empty_output>": 96520, "<file_sep>": 96511, "<fim_middle>": 96508, "<fim_prefix>": 96507, "<fim_suffix>": 96509, "<intermediate_to_code>": 96522, "<issue_closed>": 96514, "<issue_comment>": 96513, "<issue_start>": 96512, "<jupyter_code>": 96517, "<jupyter_output>": 96518, "<jupyter_script>": 96519, "<jupyter_start>": 96515, "<jupyter_text>": 96516, "<pr>": 96523, "<pr_base>": 96526, "<pr_base_code>": 96528, "<pr_comment>": 96531, "<pr_diff>": 96529, "<pr_diff_hunk>": 96530, "<pr_diff_hunk_comment_line>": 96538, "<pr_event_id>": 96532, "<pr_file>": 96527, "<pr_in_reply_to_comment_id>": 96537, "<pr_in_reply_to_review_id>": 96536, "<pr_is_merged>": 96525, "<pr_review>": 96533, "<pr_review_comment>": 96535, "<pr_review_state>": 96534, "<pr_status>": 96524, "<repo_name>": 96510, "<|endoftext|>": 96506, "<|end|>": 96500, "<|im_end|>": 96539, "<|im_start|>": 96540, "<|message|>": 96501, "<|pad|>": 96505, "<|start|>": 96499, "<|tool_end|>": 96504, "<|tool_excute|>": 96503, "<|tool_start|>": 96502}123456{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>systemYou are OpenCoder, created by OpenCoder Team.<|im_end|>' }}{% endif %}{{'<|im_start|>' + message['role'] + '' + message['content'] + '<|im_end|>' + ''}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant' }}{% endif %}1234567891011121314151617181920212223242526272829303132{ "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "dtype": "float16", "eos_token_id": 2, "head_dim": 128, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 14336, "max_position_embeddings": 8192, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 8, "pad_token_id": null, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_parameters": { "rope_theta": 500000.0, "rope_type": "default" }, "tie_word_embeddings": false, "transformers_version": "5.3.0", "use_cache": true, "vocab_size": 96640}1234567{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "5.3.0", "use_cache": true}123version https://git-lfs.github.com/spec/v1oid sha256:97dc21f9e1970d0071d79db34a8f1e0fc866638c9fa65863a9b8cc14c28e11b0size 1982892872123version https://git-lfs.github.com/spec/v1oid sha256:c91c27db94b3d66edb490b8e79708ed0991697b7ec35f0054d5a700c548295f1size 1946243896123version https://git-lfs.github.com/spec/v1oid sha256:08841664dd095bcaf6d9f203de55010934f20ef5365df259e6d30fe9bf2e5f91size 1979781384123version https://git-lfs.github.com/spec/v1oid sha256:e6278429998838ac4a6959cf873972fcc9ea1d2b72314c97dfe7b849bb64b21csize 1946243936123version https://git-lfs.github.com/spec/v1oid sha256:181426459d62fb4fd31c3e8470c875fd52c3831a659e485503cc6726968b9450size 1979781416123version https://git-lfs.github.com/spec/v1oid sha256:21c515f3e25788e07c8489f7ae3c907d0666ce1206ae3e29d552e266861c046bsize 1946243936123version https://git-lfs.github.com/spec/v1oid sha256:87737ff2159ce38747ccef5c967f4152ff32f42c801713e5629c8e50afc8cec6size 1979781416123version https://git-lfs.github.com/spec/v1oid sha256:ab4695969d340b68ab6858a8f431589ea1a4311d9e5ee3e9bc03f709b0bcf1f3size 1781590608123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299{ "metadata": { "total_parameters": 7771262976, "total_size": 15542525952 }, "weight_map": { "lm_head.weight": "model-00008-of-00008.safetensors", "model.embed_tokens.weight": "model-00001-of-00008.safetensors", "model.layers.0.input_layernorm.weight": "model-00001-of-00008.safetensors", "model.layers.0.mlp.down_proj.weight": "model-00001-of-00008.safetensors", "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00008.safetensors", "model.layers.0.mlp.up_proj.weight": "model-00001-of-00008.safetensors", "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00008.safetensors", "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00008.safetensors", "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00008.safetensors", "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00008.safetensors", "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.input_layernorm.weight": "model-00001-of-00008.safetensors", "model.layers.1.mlp.down_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.mlp.up_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00008.safetensors", "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00008.safetensors", "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00008.safetensors", "model.layers.10.input_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.10.mlp.down_proj.weight": "model-00003-of-00008.safetensors", "model.layers.10.mlp.gate_proj.weight": "model-00003-of-00008.safetensors", "model.layers.10.mlp.up_proj.weight": "model-00003-of-00008.safetensors", "model.layers.10.post_attention_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.10.self_attn.k_proj.weight": "model-00003-of-00008.safetensors", "model.layers.10.self_attn.o_proj.weight": "model-00003-of-00008.safetensors", "model.layers.10.self_attn.q_proj.weight": "model-00003-of-00008.safetensors", "model.layers.10.self_attn.v_proj.weight": "model-00003-of-00008.safetensors", "model.layers.11.input_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.11.mlp.down_proj.weight": "model-00004-of-00008.safetensors", "model.layers.11.mlp.gate_proj.weight": "model-00003-of-00008.safetensors", "model.layers.11.mlp.up_proj.weight": "model-00003-of-00008.safetensors", "model.layers.11.post_attention_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.11.self_attn.k_proj.weight": "model-00003-of-00008.safetensors", "model.layers.11.self_attn.o_proj.weight": "model-00003-of-00008.safetensors", "model.layers.11.self_attn.q_proj.weight": "model-00003-of-00008.safetensors", "model.layers.11.self_attn.v_proj.weight": "model-00003-of-00008.safetensors", "model.layers.12.input_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.12.mlp.down_proj.weight": "model-00004-of-00008.safetensors", "model.layers.12.mlp.gate_proj.weight": "model-00004-of-00008.safetensors", "model.layers.12.mlp.up_proj.weight": "model-00004-of-00008.safetensors", "model.layers.12.post_attention_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.12.self_attn.k_proj.weight": "model-00004-of-00008.safetensors", "model.layers.12.self_attn.o_proj.weight": "model-00004-of-00008.safetensors", "model.layers.12.self_attn.q_proj.weight": "model-00004-of-00008.safetensors", "model.layers.12.self_attn.v_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.input_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.13.mlp.down_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.mlp.gate_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.mlp.up_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.post_attention_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.13.self_attn.k_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.self_attn.o_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.self_attn.q_proj.weight": "model-00004-of-00008.safetensors", "model.layers.13.self_attn.v_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.input_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.14.mlp.down_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.mlp.gate_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.mlp.up_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.post_attention_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.14.self_attn.k_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.self_attn.o_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.self_attn.q_proj.weight": "model-00004-of-00008.safetensors", "model.layers.14.self_attn.v_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.input_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.15.mlp.down_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.mlp.gate_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.mlp.up_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.post_attention_layernorm.weight": "model-00004-of-00008.safetensors", "model.layers.15.self_attn.k_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.self_attn.o_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.self_attn.q_proj.weight": "model-00004-of-00008.safetensors", "model.layers.15.self_attn.v_proj.weight": "model-00004-of-00008.safetensors", "model.layers.16.input_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.16.mlp.down_proj.weight": "model-00005-of-00008.safetensors", "model.layers.16.mlp.gate_proj.weight": "model-00005-of-00008.safetensors", "model.layers.16.mlp.up_proj.weight": "model-00005-of-00008.safetensors", "model.layers.16.post_attention_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.16.self_attn.k_proj.weight": "model-00004-of-00008.safetensors", "model.layers.16.self_attn.o_proj.weight": "model-00004-of-00008.safetensors", "model.layers.16.self_attn.q_proj.weight": "model-00004-of-00008.safetensors", "model.layers.16.self_attn.v_proj.weight": "model-00004-of-00008.safetensors", "model.layers.17.input_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.17.mlp.down_proj.weight": "model-00005-of-00008.safetensors", "model.layers.17.mlp.gate_proj.weight": "model-00005-of-00008.safetensors", "model.layers.17.mlp.up_proj.weight": "model-00005-of-00008.safetensors", "model.layers.17.post_attention_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.17.self_attn.k_proj.weight": "model-00005-of-00008.safetensors", "model.layers.17.self_attn.o_proj.weight": "model-00005-of-00008.safetensors", "model.layers.17.self_attn.q_proj.weight": "model-00005-of-00008.safetensors", "model.layers.17.self_attn.v_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.input_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.18.mlp.down_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.mlp.gate_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.mlp.up_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.post_attention_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.18.self_attn.k_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.self_attn.o_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.self_attn.q_proj.weight": "model-00005-of-00008.safetensors", "model.layers.18.self_attn.v_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.input_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.19.mlp.down_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.mlp.gate_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.mlp.up_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.post_attention_layernorm.weight": "model-00005-of-00008.safetensors", "model.layers.19.self_attn.k_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.self_attn.o_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.self_attn.q_proj.weight": "model-00005-of-00008.safetensors", "model.layers.19.self_attn.v_proj.weight": "model-00005-of-00008.safetensors", "model.layers.2.input_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.2.mlp.down_proj.weight": "model-00002-of-00008.safetensors", "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00008.safetensors", "model.layers.2.mlp.up_proj.weight": "model-00001-of-00008.safetensors", "model.layers.2.post_attention_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00008.safetensors", "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00008.safetensors", "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00008.safetensors", "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00008.safetensors", "model.layers.20.input_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.20.mlp.down_proj.weight": "model-00006-of-00008.safetensors", "model.layers.20.mlp.gate_proj.weight": "model-00005-of-00008.safetensors", "model.layers.20.mlp.up_proj.weight": "model-00005-of-00008.safetensors", "model.layers.20.post_attention_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.20.self_attn.k_proj.weight": "model-00005-of-00008.safetensors", "model.layers.20.self_attn.o_proj.weight": "model-00005-of-00008.safetensors", "model.layers.20.self_attn.q_proj.weight": "model-00005-of-00008.safetensors", "model.layers.20.self_attn.v_proj.weight": "model-00005-of-00008.safetensors", "model.layers.21.input_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.21.mlp.down_proj.weight": "model-00006-of-00008.safetensors", "model.layers.21.mlp.gate_proj.weight": "model-00006-of-00008.safetensors", "model.layers.21.mlp.up_proj.weight": "model-00006-of-00008.safetensors", "model.layers.21.post_attention_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.21.self_attn.k_proj.weight": "model-00006-of-00008.safetensors", "model.layers.21.self_attn.o_proj.weight": "model-00006-of-00008.safetensors", "model.layers.21.self_attn.q_proj.weight": "model-00006-of-00008.safetensors", "model.layers.21.self_attn.v_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.input_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.22.mlp.down_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.mlp.gate_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.mlp.up_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.post_attention_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.22.self_attn.k_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.self_attn.o_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.self_attn.q_proj.weight": "model-00006-of-00008.safetensors", "model.layers.22.self_attn.v_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.input_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.23.mlp.down_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.mlp.gate_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.mlp.up_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.post_attention_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.23.self_attn.k_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.self_attn.o_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.self_attn.q_proj.weight": "model-00006-of-00008.safetensors", "model.layers.23.self_attn.v_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.input_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.24.mlp.down_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.mlp.gate_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.mlp.up_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.post_attention_layernorm.weight": "model-00006-of-00008.safetensors", "model.layers.24.self_attn.k_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.self_attn.o_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.self_attn.q_proj.weight": "model-00006-of-00008.safetensors", "model.layers.24.self_attn.v_proj.weight": "model-00006-of-00008.safetensors", "model.layers.25.input_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.25.mlp.down_proj.weight": "model-00007-of-00008.safetensors", "model.layers.25.mlp.gate_proj.weight": "model-00007-of-00008.safetensors", "model.layers.25.mlp.up_proj.weight": "model-00007-of-00008.safetensors", "model.layers.25.post_attention_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.25.self_attn.k_proj.weight": "model-00006-of-00008.safetensors", "model.layers.25.self_attn.o_proj.weight": "model-00006-of-00008.safetensors", "model.layers.25.self_attn.q_proj.weight": "model-00006-of-00008.safetensors", "model.layers.25.self_attn.v_proj.weight": "model-00006-of-00008.safetensors", "model.layers.26.input_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.26.mlp.down_proj.weight": "model-00007-of-00008.safetensors", "model.layers.26.mlp.gate_proj.weight": "model-00007-of-00008.safetensors", "model.layers.26.mlp.up_proj.weight": "model-00007-of-00008.safetensors", "model.layers.26.post_attention_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.26.self_attn.k_proj.weight": "model-00007-of-00008.safetensors", "model.layers.26.self_attn.o_proj.weight": "model-00007-of-00008.safetensors", "model.layers.26.self_attn.q_proj.weight": "model-00007-of-00008.safetensors", "model.layers.26.self_attn.v_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.input_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.27.mlp.down_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.mlp.gate_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.mlp.up_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.post_attention_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.27.self_attn.k_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.self_attn.o_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.self_attn.q_proj.weight": "model-00007-of-00008.safetensors", "model.layers.27.self_attn.v_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.input_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.28.mlp.down_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.mlp.gate_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.mlp.up_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.post_attention_layernorm.weight": "model-00007-of-00008.safetensors", "model.layers.28.self_attn.k_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.self_attn.o_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.self_attn.q_proj.weight": "model-00007-of-00008.safetensors", "model.layers.28.self_attn.v_proj.weight": "model-00007-of-00008.safetensors", "model.layers.29.input_layernorm.weight": "model-00008-of-00008.safetensors", "model.layers.29.mlp.down_proj.weight": "model-00008-of-00008.safetensors", "model.layers.29.mlp.gate_proj.weight": "model-00007-of-00008.safetensors", "model.layers.29.mlp.up_proj.weight": "model-00007-of-00008.safetensors", "model.layers.29.post_attention_layernorm.weight": "model-00008-of-00008.safetensors", "model.layers.29.self_attn.k_proj.weight": "model-00007-of-00008.safetensors", "model.layers.29.self_attn.o_proj.weight": "model-00007-of-00008.safetensors", "model.layers.29.self_attn.q_proj.weight": "model-00007-of-00008.safetensors", "model.layers.29.self_attn.v_proj.weight": "model-00007-of-00008.safetensors", "model.layers.3.input_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.3.mlp.down_proj.weight": "model-00002-of-00008.safetensors", "model.layers.3.mlp.gate_proj.weight": "model-00002-of-00008.safetensors", "model.layers.3.mlp.up_proj.weight": "model-00002-of-00008.safetensors", "model.layers.3.post_attention_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.3.self_attn.k_proj.weight": "model-00002-of-00008.safetensors", "model.layers.3.self_attn.o_proj.weight": "model-00002-of-00008.safetensors", "model.layers.3.self_attn.q_proj.weight": "model-00002-of-00008.safetensors", "model.layers.3.self_attn.v_proj.weight": "model-00002-of-00008.safetensors", "model.layers.30.input_layernorm.weight": "model-00008-of-00008.safetensors", "model.layers.30.mlp.down_proj.weight": "model-00008-of-00008.safetensors", "model.layers.30.mlp.gate_proj.weight": "model-00008-of-00008.safetensors", "model.layers.30.mlp.up_proj.weight": "model-00008-of-00008.safetensors", "model.layers.30.post_attention_layernorm.weight": "model-00008-of-00008.safetensors", "model.layers.30.self_attn.k_proj.weight": "model-00008-of-00008.safetensors", "model.layers.30.self_attn.o_proj.weight": "model-00008-of-00008.safetensors", "model.layers.30.self_attn.q_proj.weight": "model-00008-of-00008.safetensors", "model.layers.30.self_attn.v_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.input_layernorm.weight": "model-00008-of-00008.safetensors", "model.layers.31.mlp.down_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.mlp.gate_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.mlp.up_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.post_attention_layernorm.weight": "model-00008-of-00008.safetensors", "model.layers.31.self_attn.k_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.self_attn.o_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.self_attn.q_proj.weight": "model-00008-of-00008.safetensors", "model.layers.31.self_attn.v_proj.weight": "model-00008-of-00008.safetensors", "model.layers.4.input_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.4.mlp.down_proj.weight": "model-00002-of-00008.safetensors", "model.layers.4.mlp.gate_proj.weight": "model-00002-of-00008.safetensors", "model.layers.4.mlp.up_proj.weight": "model-00002-of-00008.safetensors", "model.layers.4.post_attention_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.4.self_attn.k_proj.weight": "model-00002-of-00008.safetensors", "model.layers.4.self_attn.o_proj.weight": "model-00002-of-00008.safetensors", "model.layers.4.self_attn.q_proj.weight": "model-00002-of-00008.safetensors", "model.layers.4.self_attn.v_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.input_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.5.mlp.down_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.mlp.gate_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.mlp.up_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.post_attention_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.5.self_attn.k_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.self_attn.o_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.self_attn.q_proj.weight": "model-00002-of-00008.safetensors", "model.layers.5.self_attn.v_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.input_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.6.mlp.down_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.mlp.gate_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.mlp.up_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.post_attention_layernorm.weight": "model-00002-of-00008.safetensors", "model.layers.6.self_attn.k_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.self_attn.o_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.self_attn.q_proj.weight": "model-00002-of-00008.safetensors", "model.layers.6.self_attn.v_proj.weight": "model-00002-of-00008.safetensors", "model.layers.7.input_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.7.mlp.down_proj.weight": "model-00003-of-00008.safetensors", "model.layers.7.mlp.gate_proj.weight": "model-00003-of-00008.safetensors", "model.layers.7.mlp.up_proj.weight": "model-00003-of-00008.safetensors", "model.layers.7.post_attention_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.7.self_attn.k_proj.weight": "model-00002-of-00008.safetensors", "model.layers.7.self_attn.o_proj.weight": "model-00002-of-00008.safetensors", "model.layers.7.self_attn.q_proj.weight": "model-00002-of-00008.safetensors", "model.layers.7.self_attn.v_proj.weight": "model-00002-of-00008.safetensors", "model.layers.8.input_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.8.mlp.down_proj.weight": "model-00003-of-00008.safetensors", "model.layers.8.mlp.gate_proj.weight": "model-00003-of-00008.safetensors", "model.layers.8.mlp.up_proj.weight": "model-00003-of-00008.safetensors", "model.layers.8.post_attention_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.8.self_attn.k_proj.weight": "model-00003-of-00008.safetensors", "model.layers.8.self_attn.o_proj.weight": "model-00003-of-00008.safetensors", "model.layers.8.self_attn.q_proj.weight": "model-00003-of-00008.safetensors", "model.layers.8.self_attn.v_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.input_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.9.mlp.down_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.mlp.gate_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.mlp.up_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.post_attention_layernorm.weight": "model-00003-of-00008.safetensors", "model.layers.9.self_attn.k_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.self_attn.o_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.self_attn.q_proj.weight": "model-00003-of-00008.safetensors", "model.layers.9.self_attn.v_proj.weight": "model-00003-of-00008.safetensors", "model.norm.weight": "model-00008-of-00008.safetensors" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292# coding=utf-8# Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved.## This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX# and OPT implementations in this library. It has been modified from its# original forms to accommodate minor architectural differences compared# to GPT-NeoX and OPT used by the Meta AI team that trained the model.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.
"""Tokenization classes for INFLMTokenizer."""import osfrom shutil import copyfilefrom typing import Any, Dict, List, Optional, Tuple
import sentencepiece as spm
from transformers.tokenization_utils import PreTrainedTokenizerfrom transformers.utils import logging
from tokenizers import pre_tokenizers,Regex,decodersfrom tokenizers.pre_tokenizers import Digits, Split, ByteLevelimport os # same as gpt4 cl-base-100kPATTERN = Regex("(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+\s+(\S)+") logger = logging.get_logger(__name__)
VOCAB_FILES_NAMES = {"vocab_file": "./tokenizer.model"}
PRETRAINED_VOCAB_FILES_MAP = {}
class INFLMTokenizer(PreTrainedTokenizer): """ Construct a INFLMTokenizer tokenizer based on sentence-piece
Args: vocab_file (`str`): Path to the vocabulary file. """
vocab_files_names = VOCAB_FILES_NAMES pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP model_input_names = ["input_ids", "attention_mask"] _auto_class = "AutoTokenizer"
def __init__( self, vocab_file, unk_token="<unk>", bos_token="<s>", eos_token="</s>", pad_token="<pad>", sp_model_kwargs: Optional[Dict[str, Any]] = None, add_bos_token=False, add_eos_token=False, decode_with_prefix_space=False, clean_up_tokenization_spaces=False, spaces_between_special_tokens=False, **kwargs, ): self.sp_model_kwargs = {} if sp_model_kwargs is None else sp_model_kwargs self.vocab_file = vocab_file self.add_bos_token = add_bos_token self.add_eos_token = add_eos_token self.decode_with_prefix_space = decode_with_prefix_space self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs) self.sp_model.Load(vocab_file) self._no_prefix_space_tokens = None self.pre_tokenizer = pre_tokenizers.Sequence([Split(pattern =PATTERN,behavior = "isolated", invert = False)]) super().__init__( bos_token=bos_token, eos_token=eos_token, unk_token=unk_token, pad_token=pad_token, clean_up_tokenization_spaces=clean_up_tokenization_spaces, spaces_between_special_tokens=spaces_between_special_tokens, **kwargs, )
""" Initialisation"""
@property def no_prefix_space_tokens(self): if self._no_prefix_space_tokens is None: vocab = self.convert_ids_to_tokens(list(range(self.vocab_size))) self._no_prefix_space_tokens = {i for i, tok in enumerate(vocab) if not tok.startswith("▁")} return self._no_prefix_space_tokens
@property def vocab_size(self): """Returns vocab size""" return self.sp_model.get_piece_size()
@property def bos_token_id(self) -> Optional[int]: return self.sp_model.bos_id()
@property def eos_token_id(self) -> Optional[int]: return self.sp_model.eos_id()
def get_vocab(self): """Returns vocab as a dict""" vocab = {self.convert_ids_to_tokens(i): i for i in range(self.vocab_size)} vocab.update(self.added_tokens_encoder) return vocab
def _tokenize(self, text): """Returns a tokenized string.""" splits = self.pre_tokenizer.pre_tokenize_str(text) texts=[] for split in splits: texts.extend(self.sp_model.encode(split[0], out_type=str)) return texts
def _convert_token_to_id(self, token): """Converts a token (str) in an id using the vocab.""" return self.sp_model.piece_to_id(token)
def _convert_id_to_token(self, index): """Converts an index (integer) in a token (str) using the vocab.""" token = self.sp_model.IdToPiece(index) return token
def _maybe_add_prefix_space(self, tokens, decoded): if tokens and tokens[0] not in self.no_prefix_space_tokens: return " " + decoded else: return decoded
def convert_tokens_to_string(self, tokens): """Converts a sequence of tokens (string) in a single string.""" current_sub_tokens = [] out_string = "" prev_is_special = False for token in tokens: # make sure that special tokens are not decoded using sentencepiece model if token in self.all_special_tokens: out_string += self.sp_model.decode(current_sub_tokens) + token prev_is_special = True current_sub_tokens = [] else: current_sub_tokens.append(token) prev_is_special = False out_string += self.sp_model.decode(current_sub_tokens) return out_string
def save_vocabulary(self, save_directory, filename_prefix: Optional[str] = None) -> Tuple[str]: """ Save the vocabulary and special tokens file to a directory.
Args: save_directory (`str`): The directory in which to save the vocabulary.
Returns: `Tuple(str)`: Paths to the files saved. """ if not os.path.isdir(save_directory): logger.error(f"Vocabulary path ({save_directory}) should be a directory") return out_vocab_file = os.path.join( save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["vocab_file"] )
if os.path.abspath(self.vocab_file) != os.path.abspath(out_vocab_file) and os.path.isfile(self.vocab_file): copyfile(self.vocab_file, out_vocab_file) elif not os.path.isfile(self.vocab_file): with open(out_vocab_file, "wb") as fi: content_spiece_model = self.sp_model.serialized_model_proto() fi.write(content_spiece_model)
return (out_vocab_file,)
def build_inputs_with_special_tokens(self, token_ids_0, token_ids_1=None): if self.add_bos_token: bos_token_ids = [self.bos_token_id] else: bos_token_ids = []
output = bos_token_ids + token_ids_0
if token_ids_1 is not None: output = output + token_ids_1
if self.add_eos_token: output = output + [self.eos_token_id]
return output
def get_special_tokens_mask( self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None, already_has_special_tokens: bool = False ) -> List[int]: """ Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the tokenizer `prepare_for_model` method.
Args: token_ids_0 (`List[int]`): List of IDs. token_ids_1 (`List[int]`, *optional*): Optional second list of IDs for sequence pairs. already_has_special_tokens (`bool`, *optional*, defaults to `False`): Whether or not the token list is already formatted with special tokens for the model.
Returns: `List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token. """ if already_has_special_tokens: return super().get_special_tokens_mask( token_ids_0=token_ids_0, token_ids_1=token_ids_1, already_has_special_tokens=True )
eos_token_id = [1] if self.add_eos_token else [] if token_ids_1 is None: return ([0] * len(token_ids_0)) + eos_token_id return ([0] * len(token_ids_0)) + eos_token_id + ([0] * len(token_ids_1)) + eos_token_id
def create_token_type_ids_from_sequences( self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None ) -> List[int]: """ Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT sequence pair mask has the following format:
``` 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 | first sequence | second sequence | ```
if token_ids_1 is None, only returns the first portion of the mask (0s).
Note this is only used for back compatiblity, thus list of zero is returned.
Args: token_ids_0 (`List[int]`): List of ids. token_ids_1 (`List[int]`, *optional*): Optional second list of IDs for sequence pairs.
Returns: `List[int]`: List of zeros. """ eos = [self.eos_token_id]
if token_ids_1 is None: return len(token_ids_0 + eos) * [0] return len(token_ids_0 + eos + token_ids_1 + eos) * [0]
@property def default_chat_template(self): return None
def decode( self, token_ids, skip_special_tokens: bool = False, clean_up_tokenization_spaces: Optional[bool] = False, spaces_between_special_tokens: bool = False, **kwargs, ) -> str: # default spaces_between_special_tokens should be false. if spaces_between_special_tokens: logger.warning_once('spaces_between_special_tokens is set. \ It has no effect for bos,eos,pad,unk when transformers<=4.38.') return super().decode( token_ids, skip_special_tokens=skip_special_tokens, clean_up_tokenization_spaces=clean_up_tokenization_spaces, spaces_between_special_tokens=spaces_between_special_tokens, **kwargs, )123version https://git-lfs.github.com/spec/v1oid sha256:76d43d618fc0c5a7c79dc4e72579f9f29bb803b36e4a4d709d1233626fd8fe2asize 1535725123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96499": { "content": "<|start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96500": { "content": "<|end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96501": { "content": "<|message|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96502": { "content": "<|tool_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96503": { "content": "<|tool_excute|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96504": { "content": "<|tool_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96505": { "content": "<|pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96506": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96507": { "content": "<fim_prefix>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96508": { "content": "<fim_middle>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96509": { "content": "<fim_suffix>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96510": { "content": "<repo_name>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96511": { "content": "<file_sep>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96512": { "content": "<issue_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96513": { "content": "<issue_comment>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96514": { "content": "<issue_closed>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96515": { "content": "<jupyter_start>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96516": { "content": "<jupyter_text>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96517": { "content": "<jupyter_code>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96518": { "content": "<jupyter_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96519": { "content": "<jupyter_script>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96520": { "content": "<empty_output>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96521": { "content": "<code_to_intermediate>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96522": { "content": "<intermediate_to_code>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96523": { "content": "<pr>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96524": { "content": "<pr_status>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96525": { "content": "<pr_is_merged>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96526": { "content": "<pr_base>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96527": { "content": "<pr_file>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96528": { "content": "<pr_base_code>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96529": { "content": "<pr_diff>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96530": { "content": "<pr_diff_hunk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96531": { "content": "<pr_comment>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96532": { "content": "<pr_event_id>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96533": { "content": "<pr_review>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96534": { "content": "<pr_review_state>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96535": { "content": "<pr_review_comment>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96536": { "content": "<pr_in_reply_to_review_id>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96537": { "content": "<pr_in_reply_to_comment_id>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96538": { "content": "<pr_diff_hunk_comment_line>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96539": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96540": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "auto_map": { "AutoTokenizer": [ "tokenization_inflm.INFLMTokenizer", null ] }, "backend": "custom", "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "extra_special_tokens": [ "<|im_end|>", "<|im_start|>" ], "is_local": false, "model_max_length": 1000000000000000019884624838656, "pad_token": "<pad>", "return_tensors": true, "spaces_between_special_tokens": false, "tokenizer_class": "INFLMTokenizer", "unk_token": "<unk>"}abliteration_metadata.jsonAdded+58
added_tokens.jsonAdded+44
chat_template.jinjaAdded+6
config.jsonAdded+32
generation_config.jsonAdded+7
model-00001-of-00008.safetensorsAdded+3
model-00002-of-00008.safetensorsAdded+3
model-00003-of-00008.safetensorsAdded+3
model-00004-of-00008.safetensorsAdded+3
model-00005-of-00008.safetensorsAdded+3
model-00006-of-00008.safetensorsAdded+3
model-00007-of-00008.safetensorsAdded+3
model-00008-of-00008.safetensorsAdded+3
model.safetensors.index.jsonAdded+299
tokenization_inflm.pyAdded+292
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+394