EvalPlus क्या है?
EvalPlus कोड जनरेट करने वाले LLM के लिए सख़्त correctness और efficiency benchmarks. यह Evaluation & Production Ops टूल्स की Benchmark Harnesses श्रेणी में आता है; ओपन सोर्स है और Python में लिखा गया है। शुरू करने के लिए: evalPlus इंस्टॉल करें.
सारांश
EvalPlus, code-generation language models के लिए एक evaluation framework है। यह प्रसिद्ध HumanEval और MBPP benchmarks को कई और test cases के साथ बढ़ाता है: HumanEval+ में लगभग 80x ज़्यादा tests जोड़े गए हैं और MBPP+ में लगभग 35x, ताकि जो models originals पास कर लेते हैं पर edge cases में टूट जाते हैं, वे पकड़े जा सकें।
यह LLM researchers और engineering teams के लिए बना है जो code models को train या compare करते हैं और एक भरोसेमंद pass@1 number चाहते हैं। अतिरिक्त tests लागू होने पर score कितना गिरता है, यह मापकर EvalPlus दिखाता है कि किसी model का generated code मज़बूत है या कमज़ोर। इसमें EvalPerf भी शामिल है, जो generated code की सिर्फ़ correctness ही नहीं, efficiency भी आंकता है।
एक benchmark harness के रूप में यह datasets, एक CLI, एक Docker image और एक public leaderboard को एक साथ पैक करता है। एक command से generation, post-processing और evaluation तीनों चल सकते हैं, और यह vLLM, Google Gemini और Anthropic सहित कई inference backends को सपोर्ट करता है।
यह क्या करता है
- HumanEval+ और MBPP+ datasets, जिनमें originals से कहीं ज़्यादा tests हैं ताकि edge-case failures सामने आ सकें
- EvalPerf benchmark, जो generated code की runtime efficiency मापता है, सिर्फ़ correctness नहीं
- एक ही command से generation, post-processing और evaluation शुरू से अंत तक चलते हैं
- कई inference backends, जिनमें vLLM, Google Gemini और Anthropic शामिल हैं
- प्रदान की गई Docker image (ganler/evalplus) के अंदर सुरक्षित code execution
- सख़्त tests से पहले और बाद में model rankings वाला public leaderboard
शुरू करें
PyPI से package इंस्टॉल करें, फिर एक ही command से किसी model को HumanEval या MBPP पर चलाएं। जब generated code को अलग-थलग और सुरक्षित तरीके से चलाना हो, तब Docker image इस्तेमाल करें।
EvalPlus इंस्टॉल करें
PyPI से latest stable release इंस्टॉल करें। अगर आप vLLM backend के साथ model चलाने की योजना बना रहे हैं, तो vllm extra इस्तेमाल करें।
pip install "evalplus[vllm]" --upgradeCorrectness evaluation चलाएं
एक ही command में samples generate करें और उन्हें HumanEval या MBPP पर evaluate करें। dataset और backend चुनें, और deterministic decoding के लिए --greedy जोड़ें।
evalplus.evaluate --model "ise-uiuc/Magicoder-S-DS-6.7B" \
--dataset humaneval \
--backend vllm \
--greedyGeneration और evaluation अलग-अलग चलाएं
पहले code लोकली generate करें, फिर सुरक्षित execution के लिए resulting samples को Docker के अंदर evaluate करें।
evalplus.codegen --model "ise-uiuc/Magicoder-S-DS-6.7B" \
--dataset humaneval \
--backend vllm \
--greedyकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- नए train किए गए code model को HumanEval+ और MBPP+ पर benchmark करना, ताकि भरोसेमंद pass@1 score दिया जा सके
- नतीजे प्रकाशित करने से पहले, कई code-generation models की उसी सख़्त test suite पर तुलना करना
- अतिरिक्त tests के तहत किसी model का score कितना गिरता है, यह जांचना ताकि पता चले कि उसका code कमज़ोर है या नहीं
- EvalPerf के साथ correctness के अलावा generated code की runtime efficiency मापना
How EvalPlus compares
EvalPlus alongside other open-source benchmark harnesses tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| LM Evaluation Harness | ★ 14.6k | एक ही कमांड से 60+ अकादमिक benchmarks पर language models चलाएँ |
| OpenCompass | ★ 7.7k | 100+ datasets पर LLM बेंचमार्क करने का वन-स्टॉप प्लेटफ़ॉर्म |
| SWE-bench | ★ 6.3k | जाँचें कि भाषा मॉडल असली GitHub issues हल कर सकते हैं या नहीं |
| simple-evals | ★ 4.7k | OpenAI का हल्का हार्नेस, जिससे मानक zero-shot, chain-of-thought LLM benchmarks चलाए जा सकें |
| lmms-eval | ★ 4.5k | image, video और audio में बड़े मल्टीमोडल मॉडल्स के लिए reproducible evaluation suite |
| AgentBench | ★ 3.8k | ऑपरेटिंग सिस्टम, डेटाबेस, वेब और गेम्स में LLM को एजेंट के रूप में benchmark करें |
| EvalScope | ★ 3.8k | LLMs, VLMs, embeddings और AIGC models के लिए एक-कमांड वाला benchmark harness |
| EvalPlus | ★ 1.8k | कोड जनरेट करने वाले LLM के लिए सख़्त correctness और efficiency benchmarks |

