Skip to content

Commit

Permalink
build: update deps
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Apr 3, 2024
1 parent 245022d commit c14108b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ serde = "1.0"
log = "0.4"
tokio = { version = "1.37", features = ["rt", "rt-multi-thread", "sync"] }

cuda = { git = "https://github.com/YdrMaster/cuda-driver", rev = "659fc8" }
cublas = { git = "https://github.com/YdrMaster/cuda-driver", rev = "659fc8" }
search-cuda-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "659fc8" }
cuda = { git = "https://github.com/YdrMaster/cuda-driver", rev = "431d02" }
cublas = { git = "https://github.com/YdrMaster/cuda-driver", rev = "431d02" }
search-cuda-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "431d02" }
3 changes: 2 additions & 1 deletion nvidia/distributed/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fn test_load() {
.iter()
.map(Device::retain_primary)
.collect::<Vec<_>>();
let align = devices.iter().map(Device::alignment).max().unwrap();

let time = Instant::now();
let safetensors = Memory::load_safetensors_from_dir("../../../TinyLlama-1.1B-Chat-v1.0");
Expand All @@ -31,7 +32,7 @@ fn test_load() {
let nlayers = model.num_hidden_layers();
let mut matrix = Vec::with_capacity(contexts.len() * nlayers);

let distributer = Distributer::new(&model, contexts.len(), 512);
let distributer = Distributer::new(&model, contexts.len(), align);
let time = Instant::now();
for (i, context) in contexts.iter().enumerate() {
context.apply(|ctx| {
Expand Down

0 comments on commit c14108b

Please sign in to comment.