MegaTronX commited on
Commit
4c8f11e
·
verified ·
1 Parent(s): df68631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ DEFAULT_MAX_NEW_TOKENS = 1024
12
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
13
 
14
  if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
15
- model_id = "infly/OpenCoder-1.5B-Instruct"
16
  model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, device_map="auto", torch_dtype=torch.bfloat16)
17
  tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
18
  else:
 
12
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
13
 
14
  if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
15
+ model_id = "infly/OpenCoder-8B-Instruct"
16
  model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True, device_map="auto", torch_dtype=torch.bfloat16)
17
  tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
18
  else: