IlyasMoutawwakil HF Staff commited on
Commit
4c97687
·
verified ·
1 Parent(s): 7b97bbc

Upload model

Browse files
Files changed (3) hide show
  1. config.json +68 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "EncoderDecoderModel"
4
+ ],
5
+ "decoder": {
6
+ "_name_or_path": "hf-internal-testing/tiny-random-gpt2",
7
+ "activation_function": "gelu_new",
8
+ "add_cross_attention": true,
9
+ "attention_probs_dropout_prob": 0.1,
10
+ "attn_pdrop": 0.1,
11
+ "bos_token_id": 98,
12
+ "embd_pdrop": 0.1,
13
+ "eos_token_id": 98,
14
+ "gradient_checkpointing": false,
15
+ "hidden_act": "gelu",
16
+ "hidden_dropout_prob": 0.1,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 37,
19
+ "is_decoder": true,
20
+ "layer_norm_epsilon": 1e-05,
21
+ "model_type": "gpt2",
22
+ "n_ctx": 512,
23
+ "n_embd": 32,
24
+ "n_head": 4,
25
+ "n_inner": null,
26
+ "n_layer": 5,
27
+ "n_positions": 512,
28
+ "pad_token_id": 98,
29
+ "reorder_and_upcast_attn": false,
30
+ "resid_pdrop": 0.1,
31
+ "scale_attn_by_inverse_layer_idx": false,
32
+ "scale_attn_weights": true,
33
+ "summary_activation": null,
34
+ "summary_first_dropout": 0.1,
35
+ "summary_proj_to_labels": true,
36
+ "summary_type": "cls_index",
37
+ "summary_use_proj": true,
38
+ "torch_dtype": "float32",
39
+ "type_vocab_size": 16,
40
+ "use_cache": true,
41
+ "vocab_size": 1000
42
+ },
43
+ "encoder": {
44
+ "_name_or_path": "hf-internal-testing/tiny-random-bert",
45
+ "attention_probs_dropout_prob": 0.1,
46
+ "classifier_dropout": null,
47
+ "gradient_checkpointing": false,
48
+ "hidden_act": "gelu",
49
+ "hidden_dropout_prob": 0.1,
50
+ "hidden_size": 32,
51
+ "initializer_range": 0.02,
52
+ "intermediate_size": 37,
53
+ "layer_norm_eps": 1e-12,
54
+ "max_position_embeddings": 512,
55
+ "model_type": "bert",
56
+ "num_attention_heads": 4,
57
+ "num_hidden_layers": 5,
58
+ "position_embedding_type": "absolute",
59
+ "torch_dtype": "float32",
60
+ "type_vocab_size": 16,
61
+ "use_cache": true,
62
+ "vocab_size": 1124
63
+ },
64
+ "is_encoder_decoder": true,
65
+ "model_type": "encoder-decoder",
66
+ "torch_dtype": "float32",
67
+ "transformers_version": "4.53.3"
68
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 98,
4
+ "eos_token_id": 98,
5
+ "pad_token_id": 98,
6
+ "transformers_version": "4.53.3"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f671aecc66846277ef8c50b0b1c5c3ac6b5b3148bcd25f14350a776d0e19ac9a
3
+ size 906124