Skip to content
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
25 changes: 0 additions & 25 deletions mellea/stdlib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,31 +414,6 @@ def validate(

return rvs

def req(self, *args, **kwargs):
"""Shorthand for Requirement.__init__(...)."""
return req(*args, **kwargs)

def check(self, *args, **kwargs):
"""Shorthand for Requirement.__init__(..., check_only=True)."""
return check(*args, **kwargs)

def load_default_aloras(self):
"""Loads the default Aloras for this model, if they exist and if the backend supports."""
from mellea.backends.huggingface import LocalHFBackend

if self.backend.model_id == IBM_GRANITE_3_2_8B and isinstance(
self.backend, LocalHFBackend
):
from mellea.backends.aloras.huggingface.granite_aloras import (
add_granite_aloras,
)

add_granite_aloras(self.backend)
return
self._session_logger.warning(
"This model/backend combination does not support any aloras."
)

def genslot(
self,
gen_slot: Component,
Expand Down
1 change: 1 addition & 0 deletions test/stdlib_basics/test_richdocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def test_empty_table():
assert table is None, "table should be empty when supplied string is empty"


@pytest.mark.skip # Test requires too much memory for smaller machines.
def test_richdocument_generation(rd: RichDocument):
m = mellea.start_session(backend_name="hf")
response = m.chat(rd.to_markdown()[:500] + "\nSummarize the provided document.")
Expand Down