Kiy-K commited on
Commit
114f874
·
verified ·
1 Parent(s): c335116

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -3
README.md CHANGED
@@ -66,12 +66,23 @@ model.eval()
66
 
67
  print("✅ KiyEngine V3 ready for inference.")
68
 
69
- # Example forward pass (replace with your actual input)
70
- # batch_size = 1, sequence_length = 64 (chess board representation)
71
  dummy_input = torch.randint(0, 768, (1, 64))
 
72
  with torch.no_grad():
 
73
  output = model(dummy_input)
74
- print(f"Output shape: {output.shape}")
 
 
 
 
 
 
 
 
 
 
75
  ```
76
 
77
  ---
 
66
 
67
  print("✅ KiyEngine V3 ready for inference.")
68
 
69
+ # Create a fake input(Batch=1, Seq_len=64)
 
70
  dummy_input = torch.randint(0, 768, (1, 64))
71
+
72
  with torch.no_grad():
73
+ # Gọi model
74
  output = model(dummy_input)
75
+
76
+ # ✅ Cách lấy dữ liệu chuẩn từ KiyEngineOutput
77
+ print(f"🎉 Success!")
78
+ print(f"1. Policy Logits (Dự đoán nước đi): {output.policy_logits.shape}")
79
+ # Kỳ vọng: torch.Size([1, 768]) -> Dự đoán xác suất cho 768 nước đi có thể
80
+
81
+ print(f"2. Value (Đánh giá thế cờ): {output.value.shape}")
82
+ # Kỳ vọng: torch.Size([1, 1]) -> Điểm số từ -1 (Thua) đến 1 (Thắng)
83
+
84
+ print(f"3. Last Hidden State (Tư duy): {output.last_hidden_state.shape}")
85
+ # Kỳ vọng: torch.Size([1, 64, 384])
86
  ```
87
 
88
  ---