Skip to content

Commit

Permalink
python3Packages.outlines: 0.1.4 -> 0.1.3 (#36)
Browse files Browse the repository at this point in the history
Temporary downgrade to avoid
dottxt-ai/outlines-core#95
  • Loading branch information
danieldk authored Nov 21, 2024
1 parent fa793ee commit f25a1cd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
marlin-kernels
moe-kernels
opentelemetry-instrumentation-grpc
outlines
punica-kernels
torch
;
Expand Down
30 changes: 30 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,36 @@ final: prev: {
}
);

# Temporarily downgrade outlines to work around https://github.com/dottxt-ai/outlines-core/issues/95

outlines = python-super.outlines.overrideAttrs (
_: prevAttrs: rec {
version = "0.1.3";
name = "${prevAttrs.pname}-${version}";

src = prev.fetchFromGitHub {
owner = "dottxt-ai";
repo = prevAttrs.pname;
rev = version;
hash = "sha256-OACSwdkh46TwTtgsy4HNZbx62UPJJ/Lq1JJ0fFPr9mQ=";
};
}
);

outlines-core = python-super.outlines-core.overrideAttrs (
_: prevAttrs: rec {
version = "0.1.14";
name = "${prevAttrs.pname}-${version}";

src = prev.fetchFromGitHub {
owner = "dottxt-ai";
repo = prevAttrs.pname;
rev = version;
hash = "sha256-1S1KCTmHRc/5vviRd2fFFh/Sx1OKWDFlrQusMFBjLck=";
};
}
);

mamba-ssm = callPackage ./pkgs/python-modules/mamba-ssm { };

punica-kernels = callPackage ./pkgs/python-modules/punica-kernels { };
Expand Down

0 comments on commit f25a1cd

Please sign in to comment.