Run this model with HF Jobs
Run itsalissonsilva/SecPaper-Selector-4B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/itsalissonsilva/SecPaper-Selector-4B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/itsalissonsilva/SecPaper-Selector-4B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/itsalissonsilva/SecPaper-Selector-4B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/itsalissonsilva/SecPaper-Selector-4B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use itsalissonsilva/SecPaper-Selector-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use itsalissonsilva/SecPaper-Selector-4B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B") model = PeftModel.from_pretrained(base_model, "itsalissonsilva/SecPaper-Selector-4B") - Notebooks
- Google Colab
- Kaggle
Add independently rerunnable offline benchmark audit
Browse filesFiles changed (3)
- README.md+2
- release_manifest.json+10-2
- verify_benchmark.pyAdded+26
60 unmodified lines6162636460 unmodified linesSource texts are arXiv descriptive metadata and abstracts, not full papers. The source manifest records API queries and hashes. Metadata reuse follows [arXiv API terms](https://info.arxiv.org/help/api/tou.html) (CC0); original authors and paper URLs are retained in `benchmark/paper_metadata.json`. Teacher-generated task labels were filtered using Qwen3.5-397B-A17B; the student shares that model family, so correlated annotation errors remain possible. Base-model pretraining contamination is unverified. These convenience samples do not establish general literature-review competence, full-paper understanding, robustness to adversarial passages, or general citation correctness.This is a separate narrow selector. The earlier SecPaperAgent-20B full-answer study remains private and failed; these results do not promote that model or transfer to its broader task.60 unmodified lines61626364656660 unmodified linesSource texts are arXiv descriptive metadata and abstracts, not full papers. The source manifest records API queries and hashes. Metadata reuse follows [arXiv API terms](https://info.arxiv.org/help/api/tou.html) (CC0); original authors and paper URLs are retained in `benchmark/paper_metadata.json`. Teacher-generated task labels were filtered using Qwen3.5-397B-A17B; the student shares that model family, so correlated annotation errors remain possible. Base-model pretraining contamination is unverified. These convenience samples do not establish general literature-review competence, full-paper understanding, robustness to adversarial passages, or general citation correctness.To recompute every reported baseline accuracy and the release comparisons from the included raw outputs, run `python verify_benchmark.py .` with NumPy installed. This is an offline audit, not new inference. It checks the frozen row hash, regrades all 156 cases, and recomputes the paired bootstrap comparisons.This is a separate narrow selector. The earlier SecPaperAgent-20B full-answer study remains private and failed; these results do not promote that model or transfer to its broader task.
36 unmodified lines3738394041424344454647484969 unmodified lines11912012112212312436 unmodified lines"sha256": "882a428658b99c3357dbc49df039fe04f08853742d2524396ad99bb8300f15fb"},"README.md": {"bytes": 5664,"sha256": "f72f97dccbca98bfe26dbc986a66c1932d7b047a2c73560b9e5708f3b495922a"},"requirements.txt": {"bytes": 113,"sha256": "695c549f8cde22690200e379a608491352842594e65e3d6423493f6e0ee320b6"},"benchmark/annotation_manifest.json": {"bytes": 1957,"sha256": "50bb4045aa373e9b9c2a3a097bd7fb0f0ed3ce3a3fae33accfb65cfc59e166ed"69 unmodified lines"reproduce/run_tinker.py": {"bytes": 10837,"sha256": "0da36a4095c32afc5357ecc5fc99356de2c9fee35d111ec0a4b0c8393e845856"}},"gate": "evaluation.json",36 unmodified lines373839404142434445464748495051525369 unmodified lines12312412512612712812913013113236 unmodified lines"sha256": "882a428658b99c3357dbc49df039fe04f08853742d2524396ad99bb8300f15fb"},"README.md": {"bytes": 5978,"sha256": "3bc8bda9468a15acdf910eb6e952cf4f45949733611fa9ae2d74e9741490b6c2"},"requirements.txt": {"bytes": 113,"sha256": "695c549f8cde22690200e379a608491352842594e65e3d6423493f6e0ee320b6"},"verify_benchmark.py": {"bytes": 2000,"sha256": "1fe84d2a94dbcec0c968d60255ac9abd211b9c3ded0ae6cf6119f9c16001dcc4"},"benchmark/annotation_manifest.json": {"bytes": 1957,"sha256": "50bb4045aa373e9b9c2a3a097bd7fb0f0ed3ce3a3fae33accfb65cfc59e166ed"69 unmodified lines"reproduce/run_tinker.py": {"bytes": 10837,"sha256": "0da36a4095c32afc5357ecc5fc99356de2c9fee35d111ec0a4b0c8393e845856"},"reproduce/__pycache__/common.cpython-314.pyc": {"bytes": 11446,"sha256": "2bbcaffb264b8fa46fb50d590895c1da7e248a8a94d47ecc20684c3d208f674d"}},"gate": "evaluation.json",
1234567891011121314151617181920212223242526"""Recompute the published evidence results from the provided rows and raw outputs."""import argparse,json,sysfrom pathlib import Path
def main(folder): sys.path.insert(0,str(folder/'reproduce')) from common import read,grade,summary,compare,digest report=read(folder/'evaluation.json');assert digest(folder/'benchmark/rows.json')==report['rows_sha256'] rows={r['id']:r for r in read(folder/'benchmark/rows.json') if r['split']=='test'} sources={'candidate':'hf_candidate.json','hf_base':'hf_base.json','native_base':'native_base.jsonl','native_challenger':'native_challenger.jsonl','gpt_oss_20b':'gpt_oss_20b.json','cpu_trained':'cpu_trained.json'};results={} for name,file in sources.items(): path=folder/'benchmark'/file;raw=[json.loads(s) for s in path.read_text(encoding='utf-8').splitlines()] if file.endswith('.jsonl') else read(path);raw=[r for r in raw if r['split']=='test'] assert {r['id'] for r in raw}==set(rows) and len(raw)==len(rows) results[name]=[] for r in raw: g=grade('evidence',rows[r['id']],r['raw']);g['passed']=g['passed'] and r.get('clean_stop',True) assert g['passed']==r['passed'] results[name].append(dict(id=r['id'],group_id=rows[r['id']]['group_id'],**g)) assert summary(results[name])['accuracy']==report['conditions'][name]['accuracy'] results['lexical_rules']=[dict(id=r['id'],group_id=r['group_id'],**grade('evidence',r,r['rule_output'])) for r in rows.values()] comparisons={n:compare(results['candidate'],rs) for n,rs in results.items() if n!='candidate'} assert all(c['interval95'][0]>0 for c in comparisons.values()) print(json.dumps(dict(verified=True,n=len(rows),conditions={n:summary(rs) for n,rs in results.items()},comparisons=comparisons),indent=2))
if __name__=='__main__': parser=argparse.ArgumentParser();parser.add_argument('folder',nargs='?',type=Path,default=Path(__file__).resolve().parent);main(parser.parse_args().folder)README.md+2
release_manifest.json+10-2
verify_benchmark.pyAdded+26