mjschock commited on
Commit
57f4763
1 Parent(s): 15bc57a

Upload model trained with Unsloth

Browse files

Upload model trained with Unsloth 2x faster

Files changed (4) hide show
  1. README.md +2 -1
  2. config.json +20 -4
  3. generation_config.json +1 -1
  4. model.safetensors +2 -2
README.md CHANGED
@@ -1,6 +1,7 @@
1
  ---
2
  library_name: transformers
3
- tags: []
 
4
  ---
5
 
6
  # Model Card for Model ID
 
1
  ---
2
  library_name: transformers
3
+ tags:
4
+ - unsloth
5
  ---
6
 
7
  # Model Card for Model ID
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
@@ -11,7 +11,7 @@
11
  "hidden_size": 2048,
12
  "initializer_range": 0.02,
13
  "intermediate_size": 5632,
14
- "max_position_embeddings": 2048,
15
  "mlp_bias": false,
16
  "model_type": "llama",
17
  "num_attention_heads": 32,
@@ -19,12 +19,28 @@
19
  "num_key_value_heads": 4,
20
  "pad_token_id": 2,
21
  "pretraining_tp": 1,
 
 
 
 
 
 
 
 
 
 
 
 
22
  "rms_norm_eps": 1e-05,
23
- "rope_scaling": null,
 
 
 
24
  "rope_theta": 10000.0,
25
  "tie_word_embeddings": false,
26
- "torch_dtype": "float32",
27
  "transformers_version": "4.44.2",
 
28
  "use_cache": true,
29
  "vocab_size": 32000
30
  }
 
1
  {
2
+ "_name_or_path": "unsloth/tinyllama-chat-bnb-4bit",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
 
11
  "hidden_size": 2048,
12
  "initializer_range": 0.02,
13
  "intermediate_size": 5632,
14
+ "max_position_embeddings": 4096,
15
  "mlp_bias": false,
16
  "model_type": "llama",
17
  "num_attention_heads": 32,
 
19
  "num_key_value_heads": 4,
20
  "pad_token_id": 2,
21
  "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "bnb_4bit_compute_dtype": "float16",
24
+ "bnb_4bit_quant_type": "nf4",
25
+ "bnb_4bit_use_double_quant": true,
26
+ "llm_int8_enable_fp32_cpu_offload": false,
27
+ "llm_int8_has_fp16_weight": false,
28
+ "llm_int8_skip_modules": null,
29
+ "llm_int8_threshold": 6.0,
30
+ "load_in_4bit": true,
31
+ "load_in_8bit": false,
32
+ "quant_method": "bitsandbytes"
33
+ },
34
  "rms_norm_eps": 1e-05,
35
+ "rope_scaling": {
36
+ "factor": 2.0,
37
+ "type": "linear"
38
+ },
39
  "rope_theta": 10000.0,
40
  "tie_word_embeddings": false,
41
+ "torch_dtype": "float16",
42
  "transformers_version": "4.44.2",
43
+ "unsloth_version": "2024.10.7",
44
  "use_cache": true,
45
  "vocab_size": 32000
46
  }
generation_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "bos_token_id": 1,
3
  "eos_token_id": 2,
4
- "max_length": 2048,
5
  "pad_token_id": 2,
6
  "transformers_version": "4.44.2"
7
  }
 
1
  {
2
  "bos_token_id": 1,
3
  "eos_token_id": 2,
4
+ "max_length": 4096,
5
  "pad_token_id": 2,
6
  "transformers_version": "4.44.2"
7
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e9e93a56efef2e4c9a01d31c9f3e1d5b7369b81843a426ecfd1889b10e4361d
3
- size 4400216536
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0765cd247611d60e0f2eeab01dfc52be0aa38d5e3f7ad2234157c924cff6b23
3
+ size 762453323