Team Ai
Modelpublic

api-service-sac/s1-code-v2

sourceHugging Faceapache-2.0updated 10d agoView on Hugging Face
0likes8downloads
Model Card

s1-code v2

Earlier version of s1-code. For use, prefer v3. A System One decision model (322M, CPU) that returns the probability that a Python function answers a search in English or Spanish. Fine-tuned from convaiinnovations/laya (Apache 2.0).

Same input format as v3: the state is the file path, the function name, an empty line and the first 1,500 characters of the source; the question is the noul This code answers the search: <your search>.

Results (new held-out test, 197 questions, 25 candidates from Qwen3-Embedding)

SystemTop 1EnglishSpanish
s1-code v2 alone15780 %79 %
s1-code v2 + Qwen3-Embedding (fused)16583 %84 %
Qwen3-Embedding alone15276 %78 %

Training

About 81,000 questions with exact English/Spanish parity from 306 public repositories, commit messages (CommitPackFT), issues (SWE-bench, SWE-Gym, SWE-smith), CoSQA and CoSQA+ searches, and filtered private functions; one positive and three granite-mined negatives per question; checkpoint taken after the first of two epochs (the second overfitted).

Known issue: the CoSQA+ part of its data had false negatives (generated code that also answers the query). They were removed for v3.

Licence and attribution

Apache 2.0. Fine-tuned from Laya by Convai Innovations. Training data includes CoSQA+ (CC-BY-4.0, Gong et al.) and CoSQA (MIT). Private training data is not released.