Skip to content

Commit b432a2a

Browse files
committed
remove unused session functions
1 parent 773b398 commit b432a2a

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

mellea/stdlib/session.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -414,31 +414,6 @@ def validate(
414414

415415
return rvs
416416

417-
def req(self, *args, **kwargs):
418-
"""Shorthand for Requirement.__init__(...)."""
419-
return req(*args, **kwargs)
420-
421-
def check(self, *args, **kwargs):
422-
"""Shorthand for Requirement.__init__(..., check_only=True)."""
423-
return check(*args, **kwargs)
424-
425-
def load_default_aloras(self):
426-
"""Loads the default Aloras for this model, if they exist and if the backend supports."""
427-
from mellea.backends.huggingface import LocalHFBackend
428-
429-
if self.backend.model_id == IBM_GRANITE_3_2_8B and isinstance(
430-
self.backend, LocalHFBackend
431-
):
432-
from mellea.backends.aloras.huggingface.granite_aloras import (
433-
add_granite_aloras,
434-
)
435-
436-
add_granite_aloras(self.backend)
437-
return
438-
self._session_logger.warning(
439-
"This model/backend combination does not support any aloras."
440-
)
441-
442417
def genslot(
443418
self,
444419
gen_slot: Component,

0 commit comments

Comments
 (0)