Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependency versions #877

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ members = ["dfdx-core", "dfdx-derives", "dfdx"]
resolver = "2"

[workspace.dependencies]
num-traits = { version = "0.2.15", default-features = false }
safetensors = { version = "0.3.3", default-features = false }
memmap2 = { version = "0.5", default-features = false }
num-traits = { version = "0.2.17", default-features = false }
safetensors = { version = "0.4.0", default-features = false }
memmap2 = { version = "0.9.0", default-features = false }
rand = { version = "0.8.5", default-features = false, features = ["std_rng"] }
rand_distr = { version = "0.4.3", default-features = false }
libm = "0.2.7"
libm = "0.2.8"
6 changes: 3 additions & 3 deletions dfdx-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ spin = { version = "0.9.8", default-features = false, features = ["spin_mutex",
rand = { workspace = true }
rand_distr = { workspace = true }
zip = { version = "0.6.6", default-features = false, optional = true }
cudarc = { version = "0.9.13", default-features = false, optional = true, features = ["driver", "cublas", "nvrtc"] }
cudarc = { version = "0.9.15", default-features = false, optional = true, features = ["driver", "cublas", "nvrtc"] }
num-traits = { workspace = true }
safetensors = { workspace = true, optional = true }
memmap2 = { workspace = true, optional = true }
half = { version = "2.3.1", optional = true, features = ["num-traits", "rand_distr"] }
gemm = { version = "0.15.4", default-features = false, optional = true }
gemm = { version = "0.16.14", default-features = false, optional = true, features = ["rayon"] }
rayon = { version = "1.7.0", optional = true }
libm = { workspace = true }

Expand All @@ -60,7 +60,7 @@ fast-alloc = ["std"]
cuda = ["dep:cudarc", "dep:glob"]
cudnn = ["cuda", "cudarc?/cudnn"]

f16 = ["dep:half", "cudarc?/f16"]
f16 = ["dep:half", "cudarc?/f16", "gemm?/f16"]

numpy = ["dep:zip", "std"]
safetensors = ["dep:safetensors", "std", "dep:memmap2"]
Expand Down
4 changes: 2 additions & 2 deletions dfdx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
//! opt.update(&mut model, &grads);
//! ```

#![cfg_attr(feature = "nightly", feature(generic_const_exprs))]

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

Check warning on line 253 in dfdx/src/lib.rs

View workflow job for this annotation

GitHub Actions / cargo-test-nightly

the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes

pub mod feature_flags;
pub mod nn;
Expand Down Expand Up @@ -329,9 +329,9 @@
}

#[cfg(feature = "f16")]
impl AssertClose for half::f16 {
impl AssertClose for crate::dtypes::f16 {
type Elem = Self;
const DEFAULT_TOLERANCE: Self::Elem = half::f16::from_f32_const(1e-2);
const DEFAULT_TOLERANCE: Self::Elem = crate::dtypes::f16::from_f32_const(1e-2);
fn get_far_pair(&self, rhs: &Self, tolerance: Self) -> Option<(Self, Self)> {
if num_traits::Float::abs(self - rhs) > tolerance {
Some((*self, *rhs))
Expand Down
Loading