Mauricio-100 commited on
Commit
5bc9faa
·
verified ·
1 Parent(s): 9f20869

Create pytorch_model.bin

Browse files
Files changed (1) hide show
  1. pytorch_model.bin +16 -0
pytorch_model.bin ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import GPTNeoXConfig, GPTNeoXForCausalLM
2
+
3
+ # Config minimale
4
+ config = GPTNeoXConfig(
5
+ vocab_size=30000,
6
+ hidden_size=512,
7
+ num_attention_heads=8,
8
+ num_hidden_layers=6,
9
+ max_position_embeddings=1024
10
+ )
11
+
12
+ # Créer le modèle
13
+ model = GPTNeoXForCausalLM(config)
14
+
15
+ # Sauvegarder les poids
16
+ model.save_pretrained("./agent_model")