mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 02:13:23 +00:00
Revise vowpal_wabbit notebook
This commit is contained in:
parent
8fafa1af91
commit
a3a2ce623e
File diff suppressed because one or more lines are too long
834
docs/extras/use_cases/more/learned_prompt_optimization.ipynb
Normal file
834
docs/extras/use_cases/more/learned_prompt_optimization.ipynb
Normal file
File diff suppressed because one or more lines are too long
@ -45,7 +45,13 @@ class ModelRepository:
|
||||
shutil.copyfile(self.model_path, self.folder / f"model-{self.get_tag()}.vw")
|
||||
|
||||
def load(self, commandline: List[str]) -> "vw.Workspace":
|
||||
import vowpal_wabbit_next as vw
|
||||
try:
|
||||
import vowpal_wabbit_next as vw
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
"Unable to import vowpal_wabbit_next, please install with "
|
||||
"`pip install vowpal_wabbit_next`."
|
||||
) from e
|
||||
|
||||
model_data = None
|
||||
if self.model_path.exists():
|
||||
|
Loading…
Reference in New Issue
Block a user