Upload LlamaForCausalLM
Browse files- README.md +1 -2
- config.json +64 -0
- generation_config.json +12 -0
- model.safetensors +3 -0
README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
license: llama3.2
|
| 3 |
base_model:
|
| 4 |
- meta-llama/Llama-3.2-1B-Instruct
|
| 5 |
-
|
| 6 |
---
|
| 7 |
This model is a quantized version of Llama-3.2-1B-Instruct.
|
| 8 |
Code used for generation is as follows:
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model:
|
| 3 |
- meta-llama/Llama-3.2-1B-Instruct
|
| 4 |
+
license: llama3.2
|
| 5 |
---
|
| 6 |
This model is a quantized version of Llama-3.2-1B-Instruct.
|
| 7 |
Code used for generation is as follows:
|
config.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "meta-llama/Llama-3.2-1B-Instruct",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"LlamaForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 128000,
|
| 9 |
+
"eos_token_id": [
|
| 10 |
+
128001,
|
| 11 |
+
128008,
|
| 12 |
+
128009
|
| 13 |
+
],
|
| 14 |
+
"head_dim": 64,
|
| 15 |
+
"hidden_act": "silu",
|
| 16 |
+
"hidden_size": 2048,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 8192,
|
| 19 |
+
"max_position_embeddings": 131072,
|
| 20 |
+
"mlp_bias": false,
|
| 21 |
+
"model_type": "llama",
|
| 22 |
+
"num_attention_heads": 32,
|
| 23 |
+
"num_hidden_layers": 16,
|
| 24 |
+
"num_key_value_heads": 8,
|
| 25 |
+
"pretraining_tp": 1,
|
| 26 |
+
"quantization_config": {
|
| 27 |
+
"batch_size": 1,
|
| 28 |
+
"bits": 4,
|
| 29 |
+
"block_name_to_quantize": null,
|
| 30 |
+
"cache_block_outputs": true,
|
| 31 |
+
"damp_percent": 0.1,
|
| 32 |
+
"dataset": "c4",
|
| 33 |
+
"desc_act": false,
|
| 34 |
+
"exllama_config": {
|
| 35 |
+
"version": 1
|
| 36 |
+
},
|
| 37 |
+
"group_size": 128,
|
| 38 |
+
"max_input_length": null,
|
| 39 |
+
"model_seqlen": null,
|
| 40 |
+
"module_name_preceding_first_block": null,
|
| 41 |
+
"modules_in_block_to_quantize": null,
|
| 42 |
+
"pad_token_id": null,
|
| 43 |
+
"quant_method": "gptq",
|
| 44 |
+
"sym": true,
|
| 45 |
+
"tokenizer": null,
|
| 46 |
+
"true_sequential": true,
|
| 47 |
+
"use_cuda_fp16": false,
|
| 48 |
+
"use_exllama": true
|
| 49 |
+
},
|
| 50 |
+
"rms_norm_eps": 1e-05,
|
| 51 |
+
"rope_scaling": {
|
| 52 |
+
"factor": 32.0,
|
| 53 |
+
"high_freq_factor": 4.0,
|
| 54 |
+
"low_freq_factor": 1.0,
|
| 55 |
+
"original_max_position_embeddings": 8192,
|
| 56 |
+
"rope_type": "llama3"
|
| 57 |
+
},
|
| 58 |
+
"rope_theta": 500000.0,
|
| 59 |
+
"tie_word_embeddings": true,
|
| 60 |
+
"torch_dtype": "float16",
|
| 61 |
+
"transformers_version": "4.45.2",
|
| 62 |
+
"use_cache": true,
|
| 63 |
+
"vocab_size": 128256
|
| 64 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 128000,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
128001,
|
| 6 |
+
128008,
|
| 7 |
+
128009
|
| 8 |
+
],
|
| 9 |
+
"temperature": 0.6,
|
| 10 |
+
"top_p": 0.9,
|
| 11 |
+
"transformers_version": "4.45.2"
|
| 12 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:829c75777262794a605e8be26eeabb5f4083e22d23e06d4c42683f99088a134c
|
| 3 |
+
size 1032380416
|