token
Browse files- model/custom_agent.py +1 -1
model/custom_agent.py
CHANGED
@@ -102,7 +102,7 @@ class CustomHfAgent(Agent):
|
|
102 |
def format_prompt(self, task, chat_mode=False):
|
103 |
|
104 |
checkpoint = "bigcode/starcoder"
|
105 |
-
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
106 |
#model = AutoModelForCausalLM.from_pretrained(checkpoint) # You may want to use bfloat16 and/or move to GPU here
|
107 |
|
108 |
|
|
|
102 |
def format_prompt(self, task, chat_mode=False):
|
103 |
|
104 |
checkpoint = "bigcode/starcoder"
|
105 |
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint, token = self.token)
|
106 |
#model = AutoModelForCausalLM.from_pretrained(checkpoint) # You may want to use bfloat16 and/or move to GPU here
|
107 |
|
108 |
|