Skip to content

Commit

Permalink
Black auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunderberg committed Mar 1, 2024
1 parent 677fe40 commit 1b5620e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mlc_llm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,7 @@ def _gen_model_name():
artifact_tag = parsed.artifact_tag if parsed.artifact_tag else "-".join(_gen_model_name())
parsed.artifact_path = os.path.join(parsed.artifact_path, artifact_tag)

parsed.lib_name = (
f"{os.path.split(parsed.model)[1]}-{parsed.quantization.name}-{parsed.target_kind}.{parsed.lib_format}"
)
parsed.lib_name = f"{os.path.split(parsed.model)[1]}-{parsed.quantization.name}-{parsed.target_kind}.{parsed.lib_format}"
parsed.lib_path = os.path.join(parsed.artifact_path, parsed.lib_name)

return parsed
Expand Down Expand Up @@ -1200,7 +1198,6 @@ def as_float16(A: R.Tensor(shape)) -> R.Tensor(shape, dtype="float16"):
as_float16 = bb.add_func(as_float16, f"as_float16_{ndim}d")
return as_float16(arg)


float16_params = manager_transform["transform_params"].params
either_float16_params = [
relax.Var(
Expand All @@ -1225,7 +1222,6 @@ def as_float16(A: R.Tensor(shape)) -> R.Tensor(shape, dtype="float16"):

parameter_transforms.append(bb.get())


# If the model provided constants, bind them to the transform_params.
# This ensures that the generated function can reproduce the same
# output parameters even when executed outside of the `build.py`
Expand Down

0 comments on commit 1b5620e

Please sign in to comment.