Update vision.py

This commit is contained in:
Daniel Han 2025-03-18 05:29:09 -07:00
commit 4b635bef12

View file

@ -89,6 +89,7 @@ def unsloth_base_fast_generate(
raise TypeError("Unsloth: You need to pass in input_ids to .generate!")
assert(type(x) is torch.Tensor)
bsz = x.shape[0]
print(kwargs)
FastBaseModel.for_inference(self)
dtype = _get_dtype(self.config.torch_dtype)