Gaetan Lepage
2026-07-07 12:56:57 +00:00
parent 476fa49775
commit b587e7fea6
2 changed files with 9 additions and 19 deletions
+4 -14
View File
@@ -1,20 +1,10 @@
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 0ab50ad46..3f5fe0788 100644
index d3e3031e1..96b624fb3 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,15 +1,10 @@
@@ -1,5 +1,2 @@
-[build]
-rustflags = ["-C", "target-cpu=native"]
-
[target.aarch64-apple-darwin]
rustflags = [
- "-C", "target-cpu=native",
"-C", "target-feature=+aes,+sha2,+fp16,+i8mm",
]
[target.x86_64-apple-darwin]
rustflags = [
- "-C", "target-cpu=native",
"-C", "target-feature=-avx,-avx2",
]
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=+simd128"]
+5 -5
View File
@@ -73,14 +73,14 @@ let
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mistral-rs";
version = "0.8.4";
version = "0.9.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "EricLBuehler";
repo = "mistral.rs";
tag = "v${finalAttrs.version}";
hash = "sha256-BSP8fi4grbEzGOfR4tGCJVjIom/1d2mnFrK8O6BRWL4=";
hash = "sha256-3p/e7UZ8BLwT+dpb61NmzX2Z1QxxEgkgjlNzv5lWybM=";
};
patches = [
@@ -100,16 +100,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
+ lib.optionalString cudaSupport ''
substituteInPlace mistralrs-flash-attn/build.rs \
--replace-fail \
".with_cutlass(Some(CUTLASS_COMMIT))" \
".with_cutlass(Some(&cutlass_commit))" \
""
substituteInPlace mistralrs-quant/build.rs \
--replace-fail \
'builder = builder.with_cutlass(Some("7d49e6c7e2f8896c47f586706e67e1fb215529dc"));' \
"builder = builder.with_cutlass(Some(&cutlass_commit));" \
""
'';
cargoHash = "sha256-T4TPm31fihx9ZvQ6jme67yrc0osl4c9CiAm4+rISgFs=";
cargoHash = "sha256-TULJ3mEAWp1ktPDPeBbUJGHhsEuo5T2qh3/JpS+8+ds=";
nativeBuildInputs = [
pkg-config