dpv007 commited on
Commit
e224072
·
verified ·
1 Parent(s): b747d50

Upload folder using huggingface_hub

Browse files
Dockerfile CHANGED
@@ -36,10 +36,10 @@ COPY --chown=user . $HOME/app
36
  RUN cd neural_engine && cargo build --release
37
 
38
  # Download all model weights from our model repository directly into the root folder
39
- RUN curl -L -o ./model.onnx "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model.onnx?v=3" || true
40
- RUN curl -L -o ./model.onnx.data "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model.onnx.data?v=3" || true
41
- RUN curl -L -o ./model_int8.onnx "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model_int8.onnx?v=3" || true
42
- RUN curl -L -o ./model_int8.onnx.data "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model_int8.onnx.data?v=3" || true
43
 
44
  # Prepare the Neurex_Engine folder
45
  RUN mkdir -p Neurex_Engine && \
 
36
  RUN cd neural_engine && cargo build --release
37
 
38
  # Download all model weights from our model repository directly into the root folder
39
+ RUN curl -L -o ./model.onnx "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model.onnx?v=4" || true
40
+ RUN curl -L -o ./model.onnx.data "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model.onnx.data?v=4" || true
41
+ RUN curl -L -o ./model_int8.onnx "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model_int8.onnx?v=4" || true
42
+ RUN curl -L -o ./model_int8.onnx.data "https://huggingface.co/dpv007/Neurex-Weights/resolve/main/model_int8.onnx.data?v=4" || true
43
 
44
  # Prepare the Neurex_Engine folder
45
  RUN mkdir -p Neurex_Engine && \
lichess-bot/config.yml CHANGED
@@ -155,8 +155,9 @@ challenge: # Incoming challenges.
155
  # - racingKings
156
  # - threeCheck
157
  time_controls: # Time controls to accept (bots are not allowed to play ultraBullet).
158
- - bullet
159
  - blitz
 
 
160
  modes: # Game modes to accept.
161
  - casual # Unrated games.
162
  - rated # Rated games - must comment if the engine doesn't try to win.
 
155
  # - racingKings
156
  # - threeCheck
157
  time_controls: # Time controls to accept (bots are not allowed to play ultraBullet).
 
158
  - blitz
159
+ - rapid
160
+ - classical
161
  modes: # Game modes to accept.
162
  - casual # Unrated games.
163
  - rated # Rated games - must comment if the engine doesn't try to win.
neural_engine/src/main.rs CHANGED
@@ -760,11 +760,11 @@ fn main() {
760
 
761
  let root_history_len = history_moves.len();
762
  let mut root_cache = None;
763
- if let Some(mut sess) = if std::path::Path::new("model.onnx").exists() {
764
  Some(Session::builder().unwrap()
765
  .with_optimization_level(GraphOptimizationLevel::Level3).unwrap()
766
  .with_intra_threads(1).unwrap()
767
- .commit_from_file("model.onnx").unwrap())
768
  } else { None } {
769
  root_cache = Some(compute_root_kv_cache(&mut sess, &history_moves, &vocab));
770
  }
@@ -782,11 +782,11 @@ fn main() {
782
  let t_root_cache = root_cache.clone();
783
 
784
  let handle = std::thread::spawn(move || {
785
- let mut t_session = if Path::new("model.onnx").exists() {
786
  Some(Session::builder().unwrap()
787
  .with_optimization_level(GraphOptimizationLevel::Level3).unwrap()
788
  .with_intra_threads(1).unwrap()
789
- .commit_from_file("model.onnx").unwrap())
790
  } else { None };
791
 
792
  while t_keep_searching.load(Ordering::Relaxed) {
 
760
 
761
  let root_history_len = history_moves.len();
762
  let mut root_cache = None;
763
+ if let Some(mut sess) = if std::path::Path::new("model_int8.onnx").exists() {
764
  Some(Session::builder().unwrap()
765
  .with_optimization_level(GraphOptimizationLevel::Level3).unwrap()
766
  .with_intra_threads(1).unwrap()
767
+ .commit_from_file("model_int8.onnx").unwrap())
768
  } else { None } {
769
  root_cache = Some(compute_root_kv_cache(&mut sess, &history_moves, &vocab));
770
  }
 
782
  let t_root_cache = root_cache.clone();
783
 
784
  let handle = std::thread::spawn(move || {
785
+ let mut t_session = if Path::new("model_int8.onnx").exists() {
786
  Some(Session::builder().unwrap()
787
  .with_optimization_level(GraphOptimizationLevel::Level3).unwrap()
788
  .with_intra_threads(1).unwrap()
789
+ .commit_from_file("model_int8.onnx").unwrap())
790
  } else { None };
791
 
792
  while t_keep_searching.load(Ordering::Relaxed) {