Parham9292 commited on
Commit
6ed2a3a
·
verified ·
1 Parent(s): 9da6177

Create generate_weight.py

Browse files
Files changed (1) hide show
  1. generate_weight.py +10 -0
generate_weight.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+
3
+ # وزن کاملاً سبک و نمایشی
4
+ state_dict = {
5
+ "w1": torch.randn(512, 512), # ~1MB
6
+ }
7
+
8
+ torch.save(state_dict, "pytorch_model.bin")
9
+
10
+ print("pytorch_model.bin created")