updates
This commit is contained in:
+8
-8
@@ -1,6 +1,6 @@
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
use burn::backend::{Autodiff, Cuda};
|
||||
use burn::backend::{Autodiff, Wgpu};
|
||||
use burn::optim::AdamConfig;
|
||||
use engine::mcts::MctsConfig;
|
||||
use engine::training::train::{train, TrainingConfig};
|
||||
@@ -14,15 +14,15 @@ use engine::training::train::{train, TrainingConfig};
|
||||
// }
|
||||
|
||||
fn main() {
|
||||
// type MyBackend = Wgpu<f32, i32>;
|
||||
type MyBackend = Cuda<f32, i32>;
|
||||
type MyBackend = Wgpu<f32, i32>;
|
||||
// type MyBackend = Cuda<f32, i32>;
|
||||
// type MyBackend = NdArray<f32, i32>;
|
||||
type MyAutodiffBackend = Autodiff<MyBackend>;
|
||||
// let device = burn::backend::wgpu::WgpuDevice::default();
|
||||
let device = burn::backend::wgpu::WgpuDevice::default();
|
||||
// let device = burn::backend::ndarray::NdArrayDevice::default();
|
||||
let device = burn::backend::cuda::CudaDevice::default();
|
||||
// let device = burn::backend::cuda::CudaDevice::default();
|
||||
|
||||
let mcts_config = MctsConfig::new(10, 1.0, 0.05, 0.25);
|
||||
let mcts_config = MctsConfig::new(100, 1.0, 0.05, 0.25);
|
||||
|
||||
let adam_config = AdamConfig::new();
|
||||
|
||||
@@ -34,8 +34,8 @@ fn main() {
|
||||
load_model: false,
|
||||
hidden_channels: 64,
|
||||
num_blocks: 4,
|
||||
batch_size: 128, // num positions sampled to a batch (2048)
|
||||
num_episodes: 10, // num games generated per iteration (5000)
|
||||
batch_size: 1024, // num positions sampled to a batch (2048)
|
||||
num_episodes: 100, // num games generated per iteration (5000)
|
||||
buffer_max_size: 200_000, // max number of samples in the buffer
|
||||
mcts_config,
|
||||
optimizer: adam_config,
|
||||
|
||||
Reference in New Issue
Block a user