Spaces:
Sleeping
Sleeping
Use instruction-tuned code model for reliable XML answers
Browse files
README.md
CHANGED
|
@@ -17,6 +17,6 @@ This Space powers the “Try it yourself” panel on the
|
|
| 17 |
It accepts a standard C* program, applies the selected benchmark intervention,
|
| 18 |
loads the corresponding formal semantics from the
|
| 19 |
[PLSemanticsBench dataset](https://huggingface.co/datasets/EngineeringSoftware/PLSemanticsBench),
|
| 20 |
-
and runs `
|
| 21 |
|
| 22 |
The named Gradio API endpoint is `/predict`.
|
|
|
|
| 17 |
It accepts a standard C* program, applies the selected benchmark intervention,
|
| 18 |
loads the corresponding formal semantics from the
|
| 19 |
[PLSemanticsBench dataset](https://huggingface.co/datasets/EngineeringSoftware/PLSemanticsBench),
|
| 20 |
+
and runs `Qwen/Qwen2.5-Coder-3B-Instruct` on ZeroGPU.
|
| 21 |
|
| 22 |
The named Gradio API endpoint is `/predict`.
|
app.py
CHANGED
|
@@ -18,7 +18,7 @@ from cstar import (
|
|
| 18 |
build_predstate_prompt,
|
| 19 |
)
|
| 20 |
|
| 21 |
-
MODEL_ID = "
|
| 22 |
DEFAULT_PROGRAM = """int a;
|
| 23 |
int b;
|
| 24 |
int ans;
|
|
@@ -115,7 +115,7 @@ def predict(
|
|
| 115 |
with torch.inference_mode():
|
| 116 |
generated = MODEL.generate(
|
| 117 |
**model_inputs,
|
| 118 |
-
max_new_tokens=
|
| 119 |
do_sample=False,
|
| 120 |
pad_token_id=TOKENIZER.eos_token_id,
|
| 121 |
)
|
|
|
|
| 18 |
build_predstate_prompt,
|
| 19 |
)
|
| 20 |
|
| 21 |
+
MODEL_ID = "Qwen/Qwen2.5-Coder-3B-Instruct"
|
| 22 |
DEFAULT_PROGRAM = """int a;
|
| 23 |
int b;
|
| 24 |
int ans;
|
|
|
|
| 115 |
with torch.inference_mode():
|
| 116 |
generated = MODEL.generate(
|
| 117 |
**model_inputs,
|
| 118 |
+
max_new_tokens=512,
|
| 119 |
do_sample=False,
|
| 120 |
pad_token_id=TOKENIZER.eos_token_id,
|
| 121 |
)
|