Skip to content

Commit

Permalink
[COGVLM]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Mar 11, 2024
1 parent 5fcb63b commit 4109c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/cogvlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def main():

if "cuda" in DEVICE:
if QUANT_ENABLED:
AutoModelForCausalLM.from_pretrained(
model = AutoModelForCausalLM.from_pretrained(
MODEL_PATH,
load_in_4bit=True,
trust_remote_code=True,
Expand All @@ -486,7 +486,7 @@ def main():
).eval()
else:
(
AutoModelForCausalLM.from_pretrained(
model = AutoModelForCausalLM.from_pretrained(
MODEL_PATH,
load_in_4bit=False,
trust_remote_code=True,
Expand Down

0 comments on commit 4109c25

Please sign in to comment.