Skip to content

Commit

Permalink
Release 0.9.31 (#1123)
Browse files Browse the repository at this point in the history
* Prevent patching whisper package download (#1111)

* Prevent patching whisper package download

* Remove whole patching mechanism

* Bump version to 0.9.31

---------

Co-authored-by: Bola Malek <[email protected]>
  • Loading branch information
basetenbot and bolasim authored Sep 4, 2024
1 parent a0ff5b8 commit 6ba0973
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 112 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "truss"
version = "0.9.30"
version = "0.9.31"
description = "A seamless bridge from model development to model delivery"
license = "MIT"
readme = "README.md"
Expand Down
3 changes: 1 addition & 2 deletions truss/contexts/local_loader/load_model_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
signature_accepts_keyword_arg,
)
from truss.contexts.truss_context import TrussContext
from truss.templates.server.common.patches import apply_patches
from truss.truss_spec import TrussSpec


Expand Down Expand Up @@ -37,7 +36,7 @@ def run(truss_dir: Path):
model_init_params["data_dir"] = truss_dir / "data"
if signature_accepts_keyword_arg(model_class_signature, "secrets"):
model_init_params["secrets"] = prepare_secrets(spec)
apply_patches(spec.apply_library_patches, spec.requirements)

model = model_class(**model_init_params)
if hasattr(model, "load"):
model.load()
Expand Down
34 changes: 0 additions & 34 deletions truss/templates/server/common/patches.py

This file was deleted.

69 changes: 0 additions & 69 deletions truss/templates/server/common/patches/whisper/patch.py

This file was deleted.

6 changes: 0 additions & 6 deletions truss/templates/server/model_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import pydantic
from anyio import Semaphore, to_thread
from common import tracing
from common.patches import apply_patches
from common.retry import retry
from common.schema import TrussSchema
from fastapi import HTTPException
Expand Down Expand Up @@ -155,11 +154,6 @@ def try_load(self):
secrets = SecretsResolver.get_secrets(self._config)
lazy_data_resolver = LazyDataResolver(data_dir)

apply_patches(
self._config.get("apply_library_patches", True),
self._config["requirements"],
)

extensions = _init_extensions(
self._config, data_dir, secrets, lazy_data_resolver
)
Expand Down

0 comments on commit 6ba0973

Please sign in to comment.