Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def generate(
|
|
| 36 |
return llm(format_prompt(user_prompt), **asdict(generation_config))
|
| 37 |
|
| 38 |
config = AutoConfig.from_pretrained(
|
| 39 |
-
"
|
| 40 |
)
|
| 41 |
llm = AutoModelForCausalLM.from_pretrained(
|
| 42 |
os.path.abspath("replit-v2-codeinstruct-3b.q4_1.bin"),
|
|
|
|
| 36 |
return llm(format_prompt(user_prompt), **asdict(generation_config))
|
| 37 |
|
| 38 |
config = AutoConfig.from_pretrained(
|
| 39 |
+
"teknium/Replit-v2-CodeInstruct-3B", context_length=2048
|
| 40 |
)
|
| 41 |
llm = AutoModelForCausalLM.from_pretrained(
|
| 42 |
os.path.abspath("replit-v2-codeinstruct-3b.q4_1.bin"),
|