GLM-5/5.1 MXFP4 Checkpoint Inference Compatibility Fix (#22543)
Co-authored-by: HAI <hixiao@gmail.com>
This commit is contained in:
@@ -1016,6 +1016,8 @@ class ServerArgs:
|
||||
self.served_model_name = self.model_path
|
||||
if self.device is None:
|
||||
self.device = get_device()
|
||||
# strip device index from user if any (e.g. "cuda:0" -> "cuda")
|
||||
self.device = self.device.split(":")[0]
|
||||
if self.random_seed is None:
|
||||
self.random_seed = random.randint(0, 1 << 30)
|
||||
if self.mm_process_config is None:
|
||||
|
||||
Reference in New Issue
Block a user