Instructions to use api-service-sac/s1-code-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use api-service-sac/s1-code-v1 with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: convaiinnovations/laya
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
- es
|
| 7 |
+
library_name: laya
|
| 8 |
+
tags:
|
| 9 |
+
- code-search
|
| 10 |
+
- reranker
|
| 11 |
+
- system-one
|
| 12 |
+
- python
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# s1-code v1
|
| 16 |
+
|
| 17 |
+
First version of [s1-code](https://huggingface.co/api-service-sac/s1-code-v3). **For use, prefer v3.** A System One
|
| 18 |
+
decision model (322M, CPU) that returns the probability that a Python function answers a search.
|
| 19 |
+
Fine-tuned from [convaiinnovations/laya](https://huggingface.co/convaiinnovations/laya) (Apache 2.0).
|
| 20 |
+
|
| 21 |
+
Same input format as v3: the state is the file path, the function name, an empty line and the first 1,500 characters
|
| 22 |
+
of the source; the question is the noul `This code answers the search: <your search>`.
|
| 23 |
+
|
| 24 |
+
## Results (new held-out test, 197 questions, 25 candidates from Qwen3-Embedding)
|
| 25 |
+
|
| 26 |
+
| System | Top 1 | English | Spanish |
|
| 27 |
+
|---|---|---|---|
|
| 28 |
+
| s1-code v1 alone | 144 | 68 % | 78 % |
|
| 29 |
+
| s1-code v1 + Qwen3-Embedding (fused) | 167 | 79 % | 91 % |
|
| 30 |
+
| Qwen3-Embedding alone | 152 | 76 % | 78 % |
|
| 31 |
+
|
| 32 |
+
Trained on 30,068 generated questions (59 % Spanish, 41 % English) for functions of 306 public Python repositories with
|
| 33 |
+
permissive licences, with granite-mined negatives. Stronger in Spanish than in English, which v2 and v3 corrected.
|
| 34 |
+
|
| 35 |
+
## Licence
|
| 36 |
+
|
| 37 |
+
Apache 2.0. Fine-tuned from Laya by Convai Innovations.
|