Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from langchain import PromptTemplate, LLMChain
|
|
7 |
|
8 |
# β Model setup (small enough to CPU-serve in a Space) β
|
9 |
MODEL_ID = "bigcode/starcoder2-3b"
|
10 |
-
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
11 |
-
model = AutoModelForCausalLM.from_pretrained(MODEL_ID)
|
12 |
|
13 |
# wrap in a HF pipeline and LangChain LLM
|
14 |
pipe = pipeline(
|
|
|
7 |
|
8 |
# β Model setup (small enough to CPU-serve in a Space) β
|
9 |
MODEL_ID = "bigcode/starcoder2-3b"
|
10 |
+
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID,trust_remote_code=True)
|
11 |
+
model = AutoModelForCausalLM.from_pretrained(MODEL_ID,trust_remote_code=True)
|
12 |
|
13 |
# wrap in a HF pipeline and LangChain LLM
|
14 |
pipe = pipeline(
|