Spaces:
Build error
Build error
clementsan commited on
Commit ·
8ca07f4
1
Parent(s): 62fa94f
Fix: add new LLM parameters: trust_remote_code and torch_dtype
Browse files93 unmodified lines9495969797989910010193 unmodified lines progress(0.5, desc="Initializing HF Hub...") llm = HuggingFaceHub( repo_id=llm_model, model_kwargs={"temperature": temperature, "max_new_tokens": max_tokens, "top_k": top_k} model_kwargs={"temperature": temperature, "max_new_tokens": max_tokens, "top_k": top_k,\ "trust_remote_code": True, "torch_dtype": torch.bfloat16} ) progress(0.5, desc="Defining buffer memory...")app.py+2-1