harithushan
commited on
Commit
•
6bac8b6
1
Parent(s):
46edc5e
Upload OPTForCausalLM
Browse files- config.json +69 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/opt-125m",
|
3 |
+
"_remove_final_layer_norm": false,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "relu",
|
6 |
+
"architectures": [
|
7 |
+
"OPTForCausalLM"
|
8 |
+
],
|
9 |
+
"attention_dropout": 0.0,
|
10 |
+
"bos_token_id": 2,
|
11 |
+
"do_layer_norm_before": true,
|
12 |
+
"dropout": 0.1,
|
13 |
+
"enable_bias": true,
|
14 |
+
"eos_token_id": 2,
|
15 |
+
"ffn_dim": 3072,
|
16 |
+
"hidden_size": 768,
|
17 |
+
"init_std": 0.02,
|
18 |
+
"layer_norm_elementwise_affine": true,
|
19 |
+
"layerdrop": 0.0,
|
20 |
+
"max_position_embeddings": 2048,
|
21 |
+
"model_type": "opt",
|
22 |
+
"num_attention_heads": 12,
|
23 |
+
"num_hidden_layers": 12,
|
24 |
+
"pad_token_id": 1,
|
25 |
+
"prefix": "</s>",
|
26 |
+
"quantization_config": {
|
27 |
+
"batch_size": 1,
|
28 |
+
"bits": 4,
|
29 |
+
"block_name_to_quantize": "model.decoder.layers",
|
30 |
+
"cache_block_outputs": true,
|
31 |
+
"damp_percent": 0.1,
|
32 |
+
"dataset": [
|
33 |
+
"The sun sets behind the mountains, casting a warm glow over the valley.",
|
34 |
+
"In a galaxy far, far away, a lone spaceship embarks on a daring mission.",
|
35 |
+
"Amidst the hustle and bustle of the city, a quiet park offers a serene escape.",
|
36 |
+
"The sound of waves crashing against the shore soothes the soul.",
|
37 |
+
"A mysterious door appeared at the end of the winding cobblestone path.",
|
38 |
+
"Deep in the enchanted forest, magical creatures danced under the moonlight.",
|
39 |
+
"On a rainy day, the aroma of freshly brewed coffee filled the cozy cafe.",
|
40 |
+
"Lost in thought, she gazed out of the window as raindrops painted patterns on the glass.",
|
41 |
+
"The old bookstore had a charm of its own, with dusty shelves holding forgotten tales.",
|
42 |
+
"Beneath a blanket of stars, a campfire flickered, sharing stories of the cosmos."
|
43 |
+
],
|
44 |
+
"desc_act": false,
|
45 |
+
"exllama_config": {
|
46 |
+
"version": 1
|
47 |
+
},
|
48 |
+
"group_size": 128,
|
49 |
+
"max_input_length": null,
|
50 |
+
"model_seqlen": 2048,
|
51 |
+
"module_name_preceding_first_block": [
|
52 |
+
"model.decoder.embed_tokens",
|
53 |
+
"model.decoder.embed_positions",
|
54 |
+
"model.decoder.final_layer_norm"
|
55 |
+
],
|
56 |
+
"pad_token_id": null,
|
57 |
+
"quant_method": "gptq",
|
58 |
+
"sym": true,
|
59 |
+
"tokenizer": null,
|
60 |
+
"true_sequential": true,
|
61 |
+
"use_cuda_fp16": true,
|
62 |
+
"use_exllama": true
|
63 |
+
},
|
64 |
+
"torch_dtype": "float16",
|
65 |
+
"transformers_version": "4.36.0.dev0",
|
66 |
+
"use_cache": true,
|
67 |
+
"vocab_size": 50272,
|
68 |
+
"word_embed_proj_dim": 768
|
69 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 2,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 1,
|
6 |
+
"transformers_version": "4.36.0.dev0"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e0ba7a89ed0460b50502654ab89b2e980d437341b5ea75d16d07aa9f625f604b
|
3 |
+
size 125113584
|