Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 31, 2024
1 parent d1305d4 commit 787fa01
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auto_round/auto_quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def post_init_model(self, model):
# hasattr(model, "hf_device_map") and any(d in model.hf_device_map for d in ["cpu", "disk"])
# ):
# raise ValueError(
# "Found modules on cpu/disk. Usin Exllamav2 backend requires all the modules to be on GPU."
# "Found modules on cpu/disk. Using Exllamav2 backend requires all the modules to be on GPU."
# "You can deactivate exllama backend by setting `disable_exllama=True` in the quantization config object"
# )

Expand Down
14 changes: 14 additions & 0 deletions auto_round/export/export_to_autoround/post_init.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (c) 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import torch
EXLLAMA_DEFAULT_MAX_INPUT_LENGTH=2048

Expand Down

0 comments on commit 787fa01

Please sign in to comment.