Add model files (Trained with Unsloth)
Browse filesUpload model trained with Unsloth 2x faster
- config.json +44 -0
- generation_config.json +8 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"PhiForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 50256,
|
| 7 |
+
"embd_pdrop": 0.0,
|
| 8 |
+
"eos_token_id": 50256,
|
| 9 |
+
"hidden_act": "gelu_new",
|
| 10 |
+
"hidden_size": 2560,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 10240,
|
| 13 |
+
"layer_norm_eps": 1e-05,
|
| 14 |
+
"max_position_embeddings": 2048,
|
| 15 |
+
"model_type": "phi",
|
| 16 |
+
"num_attention_heads": 32,
|
| 17 |
+
"num_hidden_layers": 32,
|
| 18 |
+
"num_key_value_heads": 32,
|
| 19 |
+
"output_hidden_states": true,
|
| 20 |
+
"pad_token_id": 50256,
|
| 21 |
+
"partial_rotary_factor": 0.4,
|
| 22 |
+
"qk_layernorm": false,
|
| 23 |
+
"quantization_config": {
|
| 24 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 25 |
+
"bnb_4bit_quant_type": "nf4",
|
| 26 |
+
"bnb_4bit_use_double_quant": true,
|
| 27 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 28 |
+
"llm_int8_has_fp16_weight": false,
|
| 29 |
+
"llm_int8_skip_modules": null,
|
| 30 |
+
"llm_int8_threshold": 6.0,
|
| 31 |
+
"load_in_4bit": true,
|
| 32 |
+
"load_in_8bit": false,
|
| 33 |
+
"quant_method": "bitsandbytes"
|
| 34 |
+
},
|
| 35 |
+
"resid_pdrop": 0.1,
|
| 36 |
+
"rope_scaling": null,
|
| 37 |
+
"rope_theta": 10000.0,
|
| 38 |
+
"tie_word_embeddings": false,
|
| 39 |
+
"torch_dtype": "bfloat16",
|
| 40 |
+
"transformers_version": "4.52.4",
|
| 41 |
+
"unsloth_version": "2025.6.2",
|
| 42 |
+
"use_cache": true,
|
| 43 |
+
"vocab_size": 51200
|
| 44 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"max_length": 2048,
|
| 6 |
+
"pad_token_id": 50256,
|
| 7 |
+
"transformers_version": "4.52.4"
|
| 8 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5172dea41f97364a6b136f3d632abef8834da9846b0510d3751e1145bb420b63
|
| 3 |
+
size 1824834466
|