Auditt commited on
Commit
f973995
·
verified ·
1 Parent(s): 4874968

Use instruction-tuned code model for reliable XML answers

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
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 `deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B` on ZeroGPU.
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 = "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B"
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=1024,
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
  )