Writer/camel-5b-hf
using GPU:device_map
had weights offloaded to the disk. Please provide an offload_folder
for them. Alternatively, make sure you have safetensors
installed if the model you are using offers the weights in this format.offload_folder
?(max_input_size: int = 4096, max_new_tokens: int = 256, temperature: float = 0.7, do_sample: bool = False, system_prompt: str = "", query_wrapper_prompt: SimpleInputPrompt = DEFAULT_SIMPLE_INPUT_PROMPT, tokenizer_name: str = "StabilityAI/stablelm-tuned-alpha", model_name: str = "StabilityAI/stablelm-tuned-alpha", model: Any | None = None, tokenizer: Any | None = None, device_map: str = "auto", stopping_ids: List[int] | None = None, tokenizer_kwargs: dict | None = None, model_kwargs: dict | None = None, callback_manager: CallbackManager | None = None) -> None
model_kwargs={"offload_dir": "my dir"}
model_kwargs={
"torch_dtype": torch.bfloat16,
"offload_folder": "./offload/"
}