DMID23 commited on
Commit
bddfa1d
·
verified ·
1 Parent(s): 6cd409f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -8,20 +8,14 @@ from huggingface_hub import login
8
  token = os.environ.get("HUGGING_FACE_HUB_TOKEN")
9
  login(token)
10
 
11
- base_model = "mistralai/Mistral-7B-Instruct-v0.1"
12
-
13
- tokenizer = AutoTokenizer.from_pretrained(base_model, token=True)
14
- model = AutoModelForCausalLM.from_pretrained(base_model, torch_dtype="auto", token=True)
15
 
16
  # ---------- STEP 1: Fine-tuned 모델 Git에서 clone ----------
17
  repo_url = "DMID23/MachineToolAgent"
18
 
19
 
20
  # ---------- STEP 2: Tokenizer와 모델 로드 ----------
21
- base_model = "mistralai/Mistral-7B-Instruct-v0.1"
22
-
23
  tokenizer = AutoTokenizer.from_pretrained(base_model)
24
-
25
  model = AutoModelForCausalLM.from_pretrained(
26
  repo_url,
27
  torch_dtype=torch.float32,
 
8
  token = os.environ.get("HUGGING_FACE_HUB_TOKEN")
9
  login(token)
10
 
 
 
 
 
11
 
12
  # ---------- STEP 1: Fine-tuned 모델 Git에서 clone ----------
13
  repo_url = "DMID23/MachineToolAgent"
14
 
15
 
16
  # ---------- STEP 2: Tokenizer와 모델 로드 ----------
17
+ base_model = "mistralai/Mistral-7B-v0.1"
 
18
  tokenizer = AutoTokenizer.from_pretrained(base_model)
 
19
  model = AutoModelForCausalLM.from_pretrained(
20
  repo_url,
21
  torch_dtype=torch.float32,