Sergey Mkrtchyan
Sergey Mkrtchyan
NodeJS "require" doesn't seem to trigger it either.
Facing the same issue with tensorboard 2.11.0 and Werkzeug 2.2.2 on AWS Sagemaker.
Github does not render the diff correctly, unfortunately, but the fix is correct. You can copy the diff into a text editor and see the difference.
You can do something like this ``` from mistral_inference.model import Transformer model = Transformer.from_folder(args.model_path, device=f"cuda:0") model.load_lora("/path/to/lora.safetensors", device=f"cuda:0") safetensors.torch.save_model(model, "/path/to/merged.safetensors") ```
There is a PR open already for this: https://github.com/mistralai/mistral-finetune/pull/91