Move some stuff from server.py to modules
This commit is contained in:
parent
1dacd34165
commit
e46c43afa6
3 changed files with 24 additions and 25 deletions
|
@ -7,9 +7,12 @@ from pathlib import Path
|
|||
import modules.shared as shared
|
||||
import numpy as np
|
||||
import torch
|
||||
import transformers
|
||||
from transformers import AutoModelForCausalLM
|
||||
from transformers import AutoTokenizer
|
||||
|
||||
transformers.logging.set_verbosity_error()
|
||||
|
||||
local_rank = None
|
||||
|
||||
if shared.args.flexgen:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue