summaryrefslogtreecommitdiff
path: root/candle-book
diff options
context:
space:
mode:
authorNicolas Patry <patry.nicolas@protonmail.com>2023-12-29 11:13:33 +0100
committerNicolas Patry <patry.nicolas@protonmail.com>2023-12-29 11:13:33 +0100
commit5b12fbb1433f09a3aeee530420dae284719d96e9 (patch)
treeafc58b24d89b34eb933630c6fbf677de45c49a25 /candle-book
parenta6bd0b47a5955008ef76eecdc0b2ec9acc7dd40c (diff)
downloadcandle-5b12fbb1433f09a3aeee530420dae284719d96e9.tar.gz
candle-5b12fbb1433f09a3aeee530420dae284719d96e9.tar.bz2
candle-5b12fbb1433f09a3aeee530420dae284719d96e9.zip
Trying to fix flakyness by making hub_2 and hub_3 serial tests (potential issue on mingw with mmap).
Diffstat (limited to 'candle-book')
-rw-r--r--candle-book/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/candle-book/src/lib.rs b/candle-book/src/lib.rs
index a1ec1e94..576ea7f2 100644
--- a/candle-book/src/lib.rs
+++ b/candle-book/src/lib.rs
@@ -43,11 +43,11 @@ let mmap = unsafe { Mmap::map(&file).unwrap() };
let weights = candle::safetensors::load_buffer(&mmap[..], &Device::Cpu).unwrap();
// ANCHOR_END: book_hub_2
assert_eq!(weights.len(), 206);
- }
+ // }
- #[rustfmt::skip]
- #[test]
- fn book_hub_3() {
+ // #[rustfmt::skip]
+ // #[test]
+ // fn book_hub_3() {
// ANCHOR: book_hub_3
use candle::{DType, Device, Tensor};
use hf_hub::api::sync::Api;