@synsci/cli-darwin-x64-baseline 1.1.71 → 1.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/skills/citation-management/SKILL.md +1109 -0
- package/bin/skills/citation-management/assets/bibtex_template.bib +264 -0
- package/bin/skills/citation-management/assets/citation_checklist.md +386 -0
- package/bin/skills/citation-management/references/bibtex_formatting.md +908 -0
- package/bin/skills/citation-management/references/citation_validation.md +794 -0
- package/bin/skills/citation-management/references/google_scholar_search.md +725 -0
- package/bin/skills/citation-management/references/metadata_extraction.md +870 -0
- package/bin/skills/citation-management/references/pubmed_search.md +839 -0
- package/bin/skills/citation-management/scripts/doi_to_bibtex.py +182 -0
- package/bin/skills/citation-management/scripts/extract_metadata.py +570 -0
- package/bin/skills/citation-management/scripts/format_bibtex.py +349 -0
- package/bin/skills/citation-management/scripts/search_google_scholar.py +251 -0
- package/bin/skills/citation-management/scripts/search_pubmed.py +348 -0
- package/bin/skills/citation-management/scripts/validate_citations.py +494 -0
- package/bin/skills/clinical-decision-support/README.md +129 -0
- package/bin/skills/clinical-decision-support/SKILL.md +506 -0
- package/bin/skills/clinical-decision-support/assets/biomarker_report_template.tex +380 -0
- package/bin/skills/clinical-decision-support/assets/clinical_pathway_template.tex +222 -0
- package/bin/skills/clinical-decision-support/assets/cohort_analysis_template.tex +359 -0
- package/bin/skills/clinical-decision-support/assets/color_schemes.tex +149 -0
- package/bin/skills/clinical-decision-support/assets/example_gbm_cohort.md +208 -0
- package/bin/skills/clinical-decision-support/assets/recommendation_strength_guide.md +328 -0
- package/bin/skills/clinical-decision-support/assets/treatment_recommendation_template.tex +529 -0
- package/bin/skills/clinical-decision-support/references/biomarker_classification.md +719 -0
- package/bin/skills/clinical-decision-support/references/clinical_decision_algorithms.md +604 -0
- package/bin/skills/clinical-decision-support/references/evidence_synthesis.md +840 -0
- package/bin/skills/clinical-decision-support/references/outcome_analysis.md +640 -0
- package/bin/skills/clinical-decision-support/references/patient_cohort_analysis.md +427 -0
- package/bin/skills/clinical-decision-support/references/treatment_recommendations.md +521 -0
- package/bin/skills/clinical-decision-support/scripts/biomarker_classifier.py +383 -0
- package/bin/skills/clinical-decision-support/scripts/build_decision_tree.py +417 -0
- package/bin/skills/clinical-decision-support/scripts/create_cohort_tables.py +509 -0
- package/bin/skills/clinical-decision-support/scripts/generate_survival_analysis.py +441 -0
- package/bin/skills/clinical-decision-support/scripts/validate_cds_document.py +326 -0
- package/bin/skills/clinical-reports/IMPLEMENTATION_SUMMARY.md +641 -0
- package/bin/skills/clinical-reports/README.md +236 -0
- package/bin/skills/clinical-reports/SKILL.md +1127 -0
- package/bin/skills/clinical-reports/assets/case_report_template.md +352 -0
- package/bin/skills/clinical-reports/assets/clinical_trial_csr_template.md +353 -0
- package/bin/skills/clinical-reports/assets/clinical_trial_sae_template.md +359 -0
- package/bin/skills/clinical-reports/assets/consult_note_template.md +305 -0
- package/bin/skills/clinical-reports/assets/discharge_summary_template.md +453 -0
- package/bin/skills/clinical-reports/assets/hipaa_compliance_checklist.md +395 -0
- package/bin/skills/clinical-reports/assets/history_physical_template.md +305 -0
- package/bin/skills/clinical-reports/assets/lab_report_template.md +309 -0
- package/bin/skills/clinical-reports/assets/pathology_report_template.md +249 -0
- package/bin/skills/clinical-reports/assets/quality_checklist.md +338 -0
- package/bin/skills/clinical-reports/assets/radiology_report_template.md +318 -0
- package/bin/skills/clinical-reports/assets/soap_note_template.md +253 -0
- package/bin/skills/clinical-reports/references/case_report_guidelines.md +570 -0
- package/bin/skills/clinical-reports/references/clinical_trial_reporting.md +693 -0
- package/bin/skills/clinical-reports/references/data_presentation.md +530 -0
- package/bin/skills/clinical-reports/references/diagnostic_reports_standards.md +629 -0
- package/bin/skills/clinical-reports/references/medical_terminology.md +588 -0
- package/bin/skills/clinical-reports/references/patient_documentation.md +744 -0
- package/bin/skills/clinical-reports/references/peer_review_standards.md +585 -0
- package/bin/skills/clinical-reports/references/regulatory_compliance.md +577 -0
- package/bin/skills/clinical-reports/scripts/check_deidentification.py +332 -0
- package/bin/skills/clinical-reports/scripts/compliance_checker.py +78 -0
- package/bin/skills/clinical-reports/scripts/extract_clinical_data.py +97 -0
- package/bin/skills/clinical-reports/scripts/format_adverse_events.py +97 -0
- package/bin/skills/clinical-reports/scripts/generate_report_template.py +149 -0
- package/bin/skills/clinical-reports/scripts/terminology_validator.py +126 -0
- package/bin/skills/clinical-reports/scripts/validate_case_report.py +323 -0
- package/bin/skills/clinical-reports/scripts/validate_trial_report.py +88 -0
- package/bin/skills/fireworks-ai/SKILL.md +665 -0
- package/bin/skills/generate-image/SKILL.md +178 -0
- package/bin/skills/generate-image/scripts/generate_image.py +254 -0
- package/bin/skills/groq/SKILL.md +347 -0
- package/bin/skills/hypothesis-generation/SKILL.md +293 -0
- package/bin/skills/hypothesis-generation/assets/FORMATTING_GUIDE.md +672 -0
- package/bin/skills/hypothesis-generation/assets/hypothesis_generation.sty +307 -0
- package/bin/skills/hypothesis-generation/assets/hypothesis_report_template.tex +572 -0
- package/bin/skills/hypothesis-generation/references/experimental_design_patterns.md +329 -0
- package/bin/skills/hypothesis-generation/references/hypothesis_quality_criteria.md +198 -0
- package/bin/skills/hypothesis-generation/references/literature_search_strategies.md +622 -0
- package/bin/skills/latex-posters/README.md +417 -0
- package/bin/skills/latex-posters/SKILL.md +1602 -0
- package/bin/skills/latex-posters/assets/baposter_template.tex +257 -0
- package/bin/skills/latex-posters/assets/beamerposter_template.tex +244 -0
- package/bin/skills/latex-posters/assets/poster_quality_checklist.md +358 -0
- package/bin/skills/latex-posters/assets/tikzposter_template.tex +251 -0
- package/bin/skills/latex-posters/references/latex_poster_packages.md +745 -0
- package/bin/skills/latex-posters/references/poster_content_guide.md +748 -0
- package/bin/skills/latex-posters/references/poster_design_principles.md +806 -0
- package/bin/skills/latex-posters/references/poster_layout_design.md +900 -0
- package/bin/skills/latex-posters/scripts/review_poster.sh +214 -0
- package/bin/skills/literature-review/SKILL.md +641 -0
- package/bin/skills/literature-review/assets/review_template.md +412 -0
- package/bin/skills/literature-review/references/citation_styles.md +166 -0
- package/bin/skills/literature-review/references/database_strategies.md +455 -0
- package/bin/skills/literature-review/scripts/generate_pdf.py +184 -0
- package/bin/skills/literature-review/scripts/search_databases.py +310 -0
- package/bin/skills/literature-review/scripts/verify_citations.py +218 -0
- package/bin/skills/market-research-reports/SKILL.md +904 -0
- package/bin/skills/market-research-reports/assets/FORMATTING_GUIDE.md +428 -0
- package/bin/skills/market-research-reports/assets/market_report_template.tex +1380 -0
- package/bin/skills/market-research-reports/assets/market_research.sty +564 -0
- package/bin/skills/market-research-reports/references/data_analysis_patterns.md +548 -0
- package/bin/skills/market-research-reports/references/report_structure_guide.md +999 -0
- package/bin/skills/market-research-reports/references/visual_generation_guide.md +1077 -0
- package/bin/skills/market-research-reports/scripts/generate_market_visuals.py +472 -0
- package/bin/skills/markitdown/INSTALLATION_GUIDE.md +318 -0
- package/bin/skills/markitdown/LICENSE.txt +22 -0
- package/bin/skills/markitdown/OPENROUTER_INTEGRATION.md +359 -0
- package/bin/skills/markitdown/QUICK_REFERENCE.md +309 -0
- package/bin/skills/markitdown/README.md +184 -0
- package/bin/skills/markitdown/SKILL.md +486 -0
- package/bin/skills/markitdown/SKILL_SUMMARY.md +307 -0
- package/bin/skills/markitdown/assets/example_usage.md +463 -0
- package/bin/skills/markitdown/references/api_reference.md +399 -0
- package/bin/skills/markitdown/references/file_formats.md +542 -0
- package/bin/skills/markitdown/scripts/batch_convert.py +195 -0
- package/bin/skills/markitdown/scripts/convert_literature.py +262 -0
- package/bin/skills/markitdown/scripts/convert_with_ai.py +224 -0
- package/bin/skills/ml-paper-writing/SKILL.md +937 -0
- package/bin/skills/ml-paper-writing/references/checklists.md +361 -0
- package/bin/skills/ml-paper-writing/references/citation-workflow.md +562 -0
- package/bin/skills/ml-paper-writing/references/reviewer-guidelines.md +367 -0
- package/bin/skills/ml-paper-writing/references/sources.md +159 -0
- package/bin/skills/ml-paper-writing/references/writing-guide.md +476 -0
- package/bin/skills/ml-paper-writing/templates/README.md +251 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/README.md +534 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.bib +111 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.sty +315 -0
- package/bin/skills/ml-paper-writing/templates/acl/README.md +50 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl.sty +312 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl_latex.tex +377 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl_lualatex.tex +101 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl_natbib.bst +1940 -0
- package/bin/skills/ml-paper-writing/templates/acl/anthology.bib.txt +26 -0
- package/bin/skills/ml-paper-writing/templates/acl/custom.bib +70 -0
- package/bin/skills/ml-paper-writing/templates/acl/formatting.md +326 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/README.md +3 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/fancyhdr.sty +485 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/math_commands.tex +508 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/natbib.sty +1246 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/math_commands.tex +508 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/natbib.sty +1246 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/algorithm.sty +79 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/algorithmic.sty +201 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.bib +75 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.tex +662 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/fancyhdr.sty +864 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/icml2026.bst +1443 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/icml2026.sty +767 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/Makefile +36 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/main.tex +38 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/neurips.sty +382 -0
- package/bin/skills/paper-2-web/SKILL.md +491 -0
- package/bin/skills/paper-2-web/references/installation.md +141 -0
- package/bin/skills/paper-2-web/references/paper2poster.md +346 -0
- package/bin/skills/paper-2-web/references/paper2video.md +305 -0
- package/bin/skills/paper-2-web/references/paper2web.md +187 -0
- package/bin/skills/paper-2-web/references/usage_examples.md +436 -0
- package/bin/skills/peer-review/SKILL.md +702 -0
- package/bin/skills/peer-review/references/calibration_guidelines.md +196 -0
- package/bin/skills/peer-review/references/common_issues.md +552 -0
- package/bin/skills/peer-review/references/paper_mechanics.md +269 -0
- package/bin/skills/peer-review/references/reporting_standards.md +290 -0
- package/bin/skills/peer-review/references/scoring_rubric.md +239 -0
- package/bin/skills/pptx-posters/SKILL.md +410 -0
- package/bin/skills/pptx-posters/assets/poster_html_template.html +257 -0
- package/bin/skills/pptx-posters/assets/poster_quality_checklist.md +358 -0
- package/bin/skills/pptx-posters/references/poster_content_guide.md +748 -0
- package/bin/skills/pptx-posters/references/poster_design_principles.md +806 -0
- package/bin/skills/pptx-posters/references/poster_layout_design.md +900 -0
- package/bin/skills/research-grants/README.md +285 -0
- package/bin/skills/research-grants/SKILL.md +938 -0
- package/bin/skills/research-grants/assets/budget_justification_template.md +453 -0
- package/bin/skills/research-grants/assets/nih_specific_aims_template.md +166 -0
- package/bin/skills/research-grants/assets/nsf_project_summary_template.md +92 -0
- package/bin/skills/research-grants/references/broader_impacts.md +392 -0
- package/bin/skills/research-grants/references/darpa_guidelines.md +636 -0
- package/bin/skills/research-grants/references/doe_guidelines.md +586 -0
- package/bin/skills/research-grants/references/nih_guidelines.md +851 -0
- package/bin/skills/research-grants/references/nsf_guidelines.md +570 -0
- package/bin/skills/research-grants/references/specific_aims_guide.md +458 -0
- package/bin/skills/research-lookup/README.md +156 -0
- package/bin/skills/research-lookup/SKILL.md +606 -0
- package/bin/skills/research-lookup/examples.py +174 -0
- package/bin/skills/research-lookup/lookup.py +187 -0
- package/bin/skills/research-lookup/research_lookup.py +483 -0
- package/bin/skills/research-lookup/scripts/research_lookup.py +483 -0
- package/bin/skills/scholar-evaluation/SKILL.md +289 -0
- package/bin/skills/scholar-evaluation/references/evaluation_framework.md +663 -0
- package/bin/skills/scholar-evaluation/scripts/calculate_scores.py +366 -0
- package/bin/skills/scientific-critical-thinking/SKILL.md +566 -0
- package/bin/skills/scientific-critical-thinking/references/common_biases.md +364 -0
- package/bin/skills/scientific-critical-thinking/references/evidence_hierarchy.md +484 -0
- package/bin/skills/scientific-critical-thinking/references/experimental_design.md +496 -0
- package/bin/skills/scientific-critical-thinking/references/logical_fallacies.md +478 -0
- package/bin/skills/scientific-critical-thinking/references/scientific_method.md +169 -0
- package/bin/skills/scientific-critical-thinking/references/statistical_pitfalls.md +506 -0
- package/bin/skills/scientific-schematics/QUICK_REFERENCE.md +207 -0
- package/bin/skills/scientific-schematics/README.md +327 -0
- package/bin/skills/scientific-schematics/SKILL.md +615 -0
- package/bin/skills/scientific-schematics/example_usage.sh +89 -0
- package/bin/skills/scientific-schematics/references/best_practices.md +559 -0
- package/bin/skills/scientific-schematics/scripts/generate_schematic.py +135 -0
- package/bin/skills/scientific-schematics/scripts/generate_schematic_ai.py +807 -0
- package/bin/skills/scientific-schematics/test_ai_generation.py +243 -0
- package/bin/skills/scientific-slides/SKILL.md +942 -0
- package/bin/skills/scientific-slides/assets/timing_guidelines.md +597 -0
- package/bin/skills/scientific-slides/references/data_visualization_slides.md +708 -0
- package/bin/skills/scientific-slides/references/presentation_structure.md +642 -0
- package/bin/skills/scientific-slides/references/slide_design_principles.md +849 -0
- package/bin/skills/scientific-slides/references/talk_types_guide.md +687 -0
- package/bin/skills/scientific-slides/references/visual_review_workflow.md +775 -0
- package/bin/skills/scientific-slides/scripts/generate_slide_image.py +143 -0
- package/bin/skills/scientific-slides/scripts/generate_slide_image_ai.py +748 -0
- package/bin/skills/scientific-slides/scripts/pdf_to_images.py +201 -0
- package/bin/skills/scientific-slides/scripts/slides_to_pdf.py +220 -0
- package/bin/skills/scientific-slides/scripts/validate_presentation.py +367 -0
- package/bin/skills/scientific-writing/SKILL.md +714 -0
- package/bin/skills/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
- package/bin/skills/scientific-writing/assets/scientific_report.sty +606 -0
- package/bin/skills/scientific-writing/assets/scientific_report_template.tex +449 -0
- package/bin/skills/scientific-writing/references/citation_styles.md +720 -0
- package/bin/skills/scientific-writing/references/figures_tables.md +806 -0
- package/bin/skills/scientific-writing/references/imrad_structure.md +686 -0
- package/bin/skills/scientific-writing/references/professional_report_formatting.md +664 -0
- package/bin/skills/scientific-writing/references/reporting_guidelines.md +748 -0
- package/bin/skills/scientific-writing/references/writing_principles.md +824 -0
- package/bin/skills/tinker/SKILL.md +2 -3
- package/bin/skills/together-ai/SKILL.md +722 -0
- package/bin/skills/treatment-plans/README.md +488 -0
- package/bin/skills/treatment-plans/SKILL.md +1579 -0
- package/bin/skills/treatment-plans/assets/STYLING_QUICK_REFERENCE.md +185 -0
- package/bin/skills/treatment-plans/assets/chronic_disease_management_plan.tex +665 -0
- package/bin/skills/treatment-plans/assets/general_medical_treatment_plan.tex +547 -0
- package/bin/skills/treatment-plans/assets/medical_treatment_plan.sty +222 -0
- package/bin/skills/treatment-plans/assets/mental_health_treatment_plan.tex +774 -0
- package/bin/skills/treatment-plans/assets/one_page_treatment_plan.tex +193 -0
- package/bin/skills/treatment-plans/assets/pain_management_plan.tex +799 -0
- package/bin/skills/treatment-plans/assets/perioperative_care_plan.tex +753 -0
- package/bin/skills/treatment-plans/assets/quality_checklist.md +471 -0
- package/bin/skills/treatment-plans/assets/rehabilitation_treatment_plan.tex +756 -0
- package/bin/skills/treatment-plans/references/goal_setting_frameworks.md +411 -0
- package/bin/skills/treatment-plans/references/intervention_guidelines.md +507 -0
- package/bin/skills/treatment-plans/references/regulatory_compliance.md +476 -0
- package/bin/skills/treatment-plans/references/specialty_specific_guidelines.md +655 -0
- package/bin/skills/treatment-plans/references/treatment_plan_standards.md +485 -0
- package/bin/skills/treatment-plans/scripts/check_completeness.py +322 -0
- package/bin/skills/treatment-plans/scripts/generate_template.py +233 -0
- package/bin/skills/treatment-plans/scripts/timeline_generator.py +385 -0
- package/bin/skills/treatment-plans/scripts/validate_treatment_plan.py +369 -0
- package/bin/skills/unsloth/SKILL.md +565 -47
- package/bin/skills/unsloth/docs/advanced-rl.md +222 -0
- package/bin/skills/unsloth/docs/chat-templates.md +141 -0
- package/bin/skills/unsloth/docs/datasets.md +489 -0
- package/bin/skills/unsloth/docs/docker-extended.md +99 -0
- package/bin/skills/unsloth/docs/dynamic-ggufs-2.0.md +116 -0
- package/bin/skills/unsloth/docs/dynamic-ggufs-aider.md +118 -0
- package/bin/skills/unsloth/docs/faq.md +91 -0
- package/bin/skills/unsloth/docs/fp16-vs-bf16.md +61 -0
- package/bin/skills/unsloth/docs/fp8-rl.md +224 -0
- package/bin/skills/unsloth/docs/glm-4.7-flash.md +997 -0
- package/bin/skills/unsloth/docs/inference-deployment-overview.md +17 -0
- package/bin/skills/unsloth/docs/inference.md +27 -0
- package/bin/skills/unsloth/docs/installation-docker.md +155 -0
- package/bin/skills/unsloth/docs/installation-pip.md +148 -0
- package/bin/skills/unsloth/docs/kernels-packing.md +190 -0
- package/bin/skills/unsloth/docs/kimi-k2.5.md +634 -0
- package/bin/skills/unsloth/docs/lm-studio.md +235 -0
- package/bin/skills/unsloth/docs/lora-hot-swapping.md +75 -0
- package/bin/skills/unsloth/docs/lora-hyperparameters.md +363 -0
- package/bin/skills/unsloth/docs/memory-efficient-rl.md +267 -0
- package/bin/skills/unsloth/docs/model-selection.md +70 -0
- package/bin/skills/unsloth/docs/models.md +532 -0
- package/bin/skills/unsloth/docs/multi-gpu-ddp.md +90 -0
- package/bin/skills/unsloth/docs/notebooks.md +223 -0
- package/bin/skills/unsloth/docs/overview.md +110 -0
- package/bin/skills/unsloth/docs/qwen3-coder-next-extended.md +900 -0
- package/bin/skills/unsloth/docs/qwen3-coder-next.md +900 -0
- package/bin/skills/unsloth/docs/requirements.md +45 -0
- package/bin/skills/unsloth/docs/reward-hacking.md +25 -0
- package/bin/skills/unsloth/docs/saving-to-gguf.md +138 -0
- package/bin/skills/unsloth/docs/saving-to-ollama.md +46 -0
- package/bin/skills/unsloth/docs/sglang-guide.md +278 -0
- package/bin/skills/unsloth/docs/speculative-decoding.md +70 -0
- package/bin/skills/unsloth/docs/tool-calling.md +334 -0
- package/bin/skills/unsloth/docs/troubleshooting-faq.md +204 -0
- package/bin/skills/unsloth/docs/troubleshooting-inference.md +26 -0
- package/bin/skills/unsloth/docs/tts-fine-tuning.md +149 -0
- package/bin/skills/unsloth/docs/tutorial-grpo.md +273 -0
- package/bin/skills/unsloth/docs/tutorial-llama3-ollama.md +356 -0
- package/bin/skills/unsloth/docs/vision-fine-tuning.md +135 -0
- package/bin/skills/unsloth/docs/vision-rl.md +170 -0
- package/bin/skills/unsloth/docs/vllm-engine-arguments.md +43 -0
- package/bin/skills/unsloth/docs/vllm-guide.md +98 -0
- package/bin/skills/venue-templates/SKILL.md +686 -0
- package/bin/skills/venue-templates/assets/examples/cell_summary_example.md +247 -0
- package/bin/skills/venue-templates/assets/examples/medical_structured_abstract.md +313 -0
- package/bin/skills/venue-templates/assets/examples/nature_abstract_examples.md +213 -0
- package/bin/skills/venue-templates/assets/examples/neurips_introduction_example.md +245 -0
- package/bin/skills/venue-templates/assets/grants/nih_specific_aims.tex +235 -0
- package/bin/skills/venue-templates/assets/grants/nsf_proposal_template.tex +375 -0
- package/bin/skills/venue-templates/assets/journals/nature_article.tex +171 -0
- package/bin/skills/venue-templates/assets/journals/neurips_article.tex +283 -0
- package/bin/skills/venue-templates/assets/journals/plos_one.tex +317 -0
- package/bin/skills/venue-templates/assets/posters/beamerposter_academic.tex +311 -0
- package/bin/skills/venue-templates/references/cell_press_style.md +483 -0
- package/bin/skills/venue-templates/references/conferences_formatting.md +564 -0
- package/bin/skills/venue-templates/references/cs_conference_style.md +463 -0
- package/bin/skills/venue-templates/references/grants_requirements.md +787 -0
- package/bin/skills/venue-templates/references/journals_formatting.md +486 -0
- package/bin/skills/venue-templates/references/medical_journal_styles.md +535 -0
- package/bin/skills/venue-templates/references/ml_conference_style.md +556 -0
- package/bin/skills/venue-templates/references/nature_science_style.md +405 -0
- package/bin/skills/venue-templates/references/posters_guidelines.md +628 -0
- package/bin/skills/venue-templates/references/reviewer_expectations.md +417 -0
- package/bin/skills/venue-templates/references/venue_writing_styles.md +321 -0
- package/bin/skills/venue-templates/scripts/customize_template.py +195 -0
- package/bin/skills/venue-templates/scripts/query_template.py +266 -0
- package/bin/skills/venue-templates/scripts/validate_format.py +250 -0
- package/bin/synsc +0 -0
- package/package.json +1 -1
- package/bin/skills/unsloth/references/index.md +0 -7
- package/bin/skills/unsloth/references/llms-full.md +0 -16799
- package/bin/skills/unsloth/references/llms-txt.md +0 -12044
- package/bin/skills/unsloth/references/llms.md +0 -82
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
# Kimi K2.5: How to Run Locally Guide
|
|
2
|
+
|
|
3
|
+
Kimi-K2.5 is the new model by Moonshot which achieves SOTA performance in vision, coding, agentic and chat tasks. The 1T parameter hybrid reasoning model requires 600GB of disk space, while the quantized **Unsloth Dynamic 1.8-bit** version reduces this to 240GB (-60% size)**:** [**Kimi-K2.5-GGUF**](https://huggingface.co/unsloth/Kimi-K2.5-GGUF)
|
|
4
|
+
|
|
5
|
+
All uploads use Unsloth [Dynamic 2.0](https://unsloth.ai/docs/basics/unsloth-dynamic-2.0-ggufs) for SOTA Aider and 5-shot MMLU performance. See how our Dynamic 1–2 bit GGUFs perform on [coding benchmarks](https://unsloth.ai/docs/basics/unsloth-dynamic-2.0-ggufs/unsloth-dynamic-ggufs-on-aider-polyglot).
|
|
6
|
+
|
|
7
|
+
### :gear: Recommended Requirements
|
|
8
|
+
|
|
9
|
+
{% hint style="info" %}
|
|
10
|
+
You need >**240GB of disk space** to run the 1-bit quant!
|
|
11
|
+
|
|
12
|
+
The only requirement is **`disk space + RAM + VRAM ≥ 240GB`**. That means you do not need to have that much RAM or VRAM (GPU) to run the model, but it will be much slower.
|
|
13
|
+
{% endhint %}
|
|
14
|
+
|
|
15
|
+
The 1.8-bit (Q1\_0) quant will run on a single 24GB GPU if you offload all MoE layers to system RAM (or a fast SSD). With \~256GB RAM, expect \~10 tokens/s. The full Kimi K2.5 model is 630GB and typically requires at least 4× H200 GPUs.
|
|
16
|
+
|
|
17
|
+
If the model fits, you will get >40 tokens/s when using a B200.
|
|
18
|
+
|
|
19
|
+
To run the model in near **full precision**, you can use the 4-bit or 5-bit quants. You can use any higher just to be safe.
|
|
20
|
+
|
|
21
|
+
For strong performance, aim for >240GB of unified memory (or combined RAM+VRAM) to reach 10+ tokens/s. If you’re below that, it'll work but speed will drop (llama.cpp can still run via mmap/disk offload) and may fall from \~10 tokens/s to <2 token/s.
|
|
22
|
+
|
|
23
|
+
We recommend UD-Q2\_K\_XL (375GB) as a good size/quality balance. Best rule of thumb: RAM+VRAM ≈ the quant size; otherwise it’ll still work, just slower due to offloading.
|
|
24
|
+
|
|
25
|
+
## 🥝 Run Kimi K2.5 Guide
|
|
26
|
+
|
|
27
|
+
Kimi-K2.5 requires different sampling parameters for different use-cases.
|
|
28
|
+
|
|
29
|
+
Currently there is **no vision support** for the model but hopefully llill support it soon.
|
|
30
|
+
|
|
31
|
+
{% hint style="success" %}
|
|
32
|
+
**To run the model in full precision, you only need to use the 4-bit or 5-bit Dynamic GGUFs (e.g. UD\_Q4\_K\_XL) because the model was originally released in INT4 format.**
|
|
33
|
+
|
|
34
|
+
You can choose a higher-bit quantization just to be safe in case of small quantization differences, but in most cases this is unnecessary.
|
|
35
|
+
{% endhint %}
|
|
36
|
+
|
|
37
|
+
#### Kimi K2.5 differences to Kimi K2 Thinking
|
|
38
|
+
|
|
39
|
+
* Both models use a modified DeepSeek V3 MoE architecture.
|
|
40
|
+
* **`rope_scaling.beta_fast` K2.5 uses 32.0 vs K2 Thinking's 1.0.**
|
|
41
|
+
* MoonViT is the native‑resolution 200M parameter vision encoder. It's similar to the one used in Kimi-VL-A3B-Instruct.
|
|
42
|
+
|
|
43
|
+
### 🌙 Usage Guide:
|
|
44
|
+
|
|
45
|
+
According to Moonshot AI, these are the recommended settings for Kimi K2.5 inference:
|
|
46
|
+
|
|
47
|
+
| Default Settings (Instant Mode) | Thinking Mode |
|
|
48
|
+
| ------------------------------------------------------------------ | -------------------------------------------------------------- |
|
|
49
|
+
| <mark style="background-color:green;">**temperature = 0.6**</mark> | <mark style="background-color:green;">**temperature = 1.0**</mark> |
|
|
50
|
+
| <mark style="background-color:green;">**top\_p = 0.95**</mark> | <mark style="background-color:green;">**top\_p = 0.95**</mark> |
|
|
51
|
+
| min\_p = 0.01 | min\_p = 0.01 |
|
|
52
|
+
|
|
53
|
+
* Set the **temperature 1.0** to reduce repetition and incoherence.
|
|
54
|
+
* Suggested context length = 98,304 (up to 256K)
|
|
55
|
+
* Note: Using different tools may require different settings
|
|
56
|
+
|
|
57
|
+
{% hint style="info" %}
|
|
58
|
+
We recommend setting <mark style="background-color:green;">**min\_p to 0.01**</mark> to suppress the occurrence of unlikely tokens with low probabilities. And **disable or set repeat penalty = 1.0** if needed.
|
|
59
|
+
{% endhint %}
|
|
60
|
+
|
|
61
|
+
#### Chat Template for Kimi K2.5
|
|
62
|
+
|
|
63
|
+
Running `tokenizer.apply_chat_template([{"role": "user", "content": "What is 1+1?"},])` gets:
|
|
64
|
+
|
|
65
|
+
{% code overflow="wrap" %}
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
<|im_system|>system<|im_middle|>You are Kimi, an AI assistant created by Moonshot AI.<|im_end|><|im_user|>user<|im_middle|>What is 1+1?<|im_end|><|im_assistant|>assistant<|im_middle|><think>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
{% endcode %}
|
|
72
|
+
|
|
73
|
+
### ✨ Run Kimi K2.5 in llama.cpp
|
|
74
|
+
|
|
75
|
+
For this guide we'll be running the smallest 1-bit quant which is 240GB in size. Feel free to change quantization type to 2-bit, 3-bit etc. To run the model in near **full precision**, you can use the 4-bit or 5-bit quants. You can use any higher just to be safe.
|
|
76
|
+
|
|
77
|
+
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
apt-get update
|
|
81
|
+
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y
|
|
82
|
+
git clone https://github.com/ggml-org/llama.cpp
|
|
83
|
+
cmake llama.cpp -B llama.cpp/build \
|
|
84
|
+
-DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
|
|
85
|
+
cmake --build ama.cpp/build --config Release -j --clean-first --target llama-cli llama-mtmd-cli llama-server llama-gguf-split
|
|
86
|
+
cp llama.cpp/build/bin/llama-* llama.cpp
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
2. If you want to use `llama.cpp` directly to load models, you can do the below: (:UD-TQ1\_0) is the quantization type. You can also download via Hugging Face (point 3). This is similar to `ollama run` . Use `export LLAMA_CACHE="folder"` to force `llama.cpp` to save to a specific location.
|
|
90
|
+
|
|
91
|
+
{% hint style="success" %}
|
|
92
|
+
`LLAMA_SET_ROWS=1` makes llama.cpp a little bit faster! Use it! `--fit on` auto fits models on all your GPUs and CPUs optimally.
|
|
93
|
+
{% endhint %}
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
export LLAMA_CACHE="unsloth/Kimi-K2.5-GGUF"
|
|
97
|
+
LLAMA_SET_ROWS=1 ./llama.cpp/llama-cli \
|
|
98
|
+
-hf unsloth/Kimi-K2.5-GGUF:UD-TQ1_0\
|
|
99
|
+
--temp 1.0 \
|
|
100
|
+
--min-p 0.01 \
|
|
101
|
+
--top-p 0.95 \
|
|
102
|
+
--ctx-size 16384 \
|
|
103
|
+
--seed 3407 \
|
|
104
|
+
--fit on \
|
|
105
|
+
--jinja
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
3. `--fit on` will auto fit the model to your system. If not using `--fit on` and you have around 360GB of combined GPU memory, remove `-ot ".ffn_.*_exps.=CPU"` to get maximum speed.
|
|
109
|
+
|
|
110
|
+
{% hint style="info" %}
|
|
111
|
+
Use `--fit on` for auto fitting on GPUs and CPUs. If this doesn't work, then see below:
|
|
112
|
+
|
|
113
|
+
Please try out `-ot ".ffn_.*_exps.=CPU"` to offload all MoE layers to the CPU! This effectively allows you to fit all non MoE layers on 1 GPU, improving generation speeds. You can customize the regex expression to fit more layers if you have more GPU capacity.
|
|
114
|
+
|
|
115
|
+
If you have a bit more GPU memory, try `-ot ".ffn_(up|down)_exps.=CPU"` This offloads up and down projection MoE layers.
|
|
116
|
+
|
|
117
|
+
Try `-ot ".ffn_(up)_exps.=CPU"` if you have even more GPU memory. This offloads only up projection MoE layers.
|
|
118
|
+
|
|
119
|
+
And finally offload all layers via `-ot ".ffn_.*_exps.=CPU"` This uses the least VRAM.
|
|
120
|
+
|
|
121
|
+
You can also customize the regex, for example `-ot "\.(6|7|8|9|[0-9][0-9]|[0-9][0-9][0-9])\.ffn_(gate|up|down)_exps.=CPU"` means to offload gate, up and down MoE layers but only from the 6th layer onwards.
|
|
122
|
+
{% endhint %}
|
|
123
|
+
|
|
124
|
+
3. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). We recommend using our 2bit dynamic quant UD-Q2\_K\_XL to balance size and accuracy. All versions at: [huggingface.co/unsloth/Kimi-K2.5-GGUF](https://huggingface.co/unsloth/Kimi-K2.5-GGUF)
|
|
125
|
+
|
|
126
|
+
{% code overflow="wrap" %}
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
pip install -U huggingface_hub
|
|
130
|
+
hf download unsloth/Kimi-K2.5-GGUF \
|
|
131
|
+
--local-dir unsloth/Kimi-K2.5-GGUF \
|
|
132
|
+
--include "*UD-TQ1_0*" # Use "*UD-Q2_K_XL*" for Dynamic 2bit
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
{% endcode %}
|
|
136
|
+
|
|
137
|
+
{% hint style="info" %}
|
|
138
|
+
If you find that downloads get stuck at 90 to 95% or so, please see our [troubleshooting guide](https://docs.unsloth.ai/basics/troubleshooting-and-faqs#downloading-gets-stuck-at-90-to-95).
|
|
139
|
+
{% endhint %}
|
|
140
|
+
|
|
141
|
+
4. Run any prompt.
|
|
142
|
+
5. Edit `--ctx-size 16384` for context length. You can also leave this out for auto context length discovery via `--fit on`
|
|
143
|
+
|
|
144
|
+
{% code overflow="wrap" %}
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
LLAMA_SET_ROWS=1 ./llama.cpp/llama-cli \
|
|
148
|
+
--model unsloth/Kimi-K2.5-GGUF/UD-TQ1_0/Kimi-K2.5-UD-TQ1_0-00001-of-00005.gguf \
|
|
149
|
+
--temp 1.0 \
|
|
150
|
+
--min_p 0.01 \
|
|
151
|
+
--top-p 0.95 \
|
|
152
|
+
--ctx-size 16384 \
|
|
153
|
+
--seed 3407 \
|
|
154
|
+
--fit on \
|
|
155
|
+
--jinja
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
{% endcode %}
|
|
159
|
+
|
|
160
|
+
6. As an example try: "Create a Flappy Bird game in HTML", and you will get:
|
|
161
|
+
|
|
162
|
+
{% columns %}
|
|
163
|
+
{% column width="33.33333333333333%" %}
|
|
164
|
+
|
|
165
|
+
<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FwgHfM2RE4JaK2shbPLWj%2Fimage.png?alt=media&token=ae7e5bae-b4b5-45d8-a126-adc3695e36ad" alt="" width="188"><figcaption></figcaption></figure>
|
|
166
|
+
{% endcolumn %}
|
|
167
|
+
|
|
168
|
+
{% column width="66.66666666666667%" %}
|
|
169
|
+
{% code expandable="true" %}
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<!DOCTYPE html>
|
|
173
|
+
<html lang="en">
|
|
174
|
+
<head>
|
|
175
|
+
<meta charset="UTF-8">
|
|
176
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
177
|
+
<title>Flappy Bird</title>
|
|
178
|
+
<style>
|
|
179
|
+
body {
|
|
180
|
+
margin: 0;
|
|
181
|
+
padding: 0;
|
|
182
|
+
background: #222;
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
align-items: center;
|
|
186
|
+
height: 100vh;
|
|
187
|
+
font-family: 'Segoe UI', sans-serif;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
touch-action: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
#game-container {
|
|
193
|
+
position: relative;
|
|
194
|
+
width: 400px;
|
|
195
|
+
height: 600px;
|
|
196
|
+
background: linear-gradient(to bottom, #70c5ce 0%, #70c5ce 80%, #c23810 80%, #c23810 100%);
|
|
197
|
+
box-shadow: 0 0 20px rgba(0,0,0,0.5);
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
canvas {
|
|
202
|
+
display: block;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.overlay {
|
|
206
|
+
position: absolute;
|
|
207
|
+
top: 50%;
|
|
208
|
+
left: 50%;
|
|
209
|
+
transform: translate(-50%, -50%);
|
|
210
|
+
text-align: center;
|
|
211
|
+
color: white;
|
|
212
|
+
text-shadow: 2px 2px 0 #000;
|
|
213
|
+
font-weight: bold;
|
|
214
|
+
pointer-events: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.game-title {
|
|
218
|
+
font-size: 48px;
|
|
219
|
+
margin-bottom: 20px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.score-display {
|
|
223
|
+
font-size: 36px;
|
|
224
|
+
margin-bottom: 10px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.best-score {
|
|
228
|
+
font-size: 24px;
|
|
229
|
+
color: #ffe;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.instruction {
|
|
233
|
+
font-size: 20px;
|
|
234
|
+
animation: pulse 1s infinite;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@keyframes pulse {
|
|
238
|
+
0%, 100% { opacity: 1; }
|
|
239
|
+
50% { opacity: 0.5; }
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.hidden { display: none; }
|
|
243
|
+
</style>
|
|
244
|
+
</head>
|
|
245
|
+
<body>
|
|
246
|
+
<div id="game-container">
|
|
247
|
+
<canvas id="canvas" width="400" height="600"></canvas>
|
|
248
|
+
|
|
249
|
+
<!-- Start Screen -->
|
|
250
|
+
<div id="start-screen" class="overlay">
|
|
251
|
+
<div class="game-title">FLAPPY BIRD</div>
|
|
252
|
+
<div class="instruction">Click or Space to Fly</div>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<!-- Game Over Screen -->
|
|
256
|
+
<div id="game-over-screen" class="overlay hidden">
|
|
257
|
+
<div class="game-title">GAME OVER</div>
|
|
258
|
+
<div class="score-display">Score: <span id="final-score">0</span></div>
|
|
259
|
+
<div class="best-score">Best: <span id="best-score">0</span></div>
|
|
260
|
+
<div class="instruction">Click to Restart</div>
|
|
261
|
+
</div>
|
|
262
|
+
|
|
263
|
+
<!-- Score Counter -->
|
|
264
|
+
<div id="current-score" class="overlay hidden" style="top: 10%; font-size: 72px; color: white; text-shadow: 4px 4px 0 #000;">
|
|
265
|
+
0
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<script>
|
|
270
|
+
const canvas = document.getElementById('canvas');
|
|
271
|
+
const ctx = canvas.getContext('2d');
|
|
272
|
+
|
|
273
|
+
// Game constants
|
|
274
|
+
const GRAVITY = 0.4;
|
|
275
|
+
const JUMP_STRENGTH = -7;
|
|
276
|
+
const PIPE_SPEED = 3;
|
|
277
|
+
const PIPE_SPAWN_RATE = 120; // frames
|
|
278
|
+
const PIPE_GAP = 120;
|
|
279
|
+
|
|
280
|
+
// Game state
|
|
281
|
+
let bird = { x: 50, y: 200, velocity: 0, radius: 15, wingState: 0 };
|
|
282
|
+
let pipes = [];
|
|
283
|
+
let score = 0;
|
|
284
|
+
let bestScore = localStorage.getItem('flappyBest') || 0;
|
|
285
|
+
let frameCount = 0;
|
|
286
|
+
let isGameOver = false;
|
|
287
|
+
let isPlaying = false;
|
|
288
|
+
|
|
289
|
+
// DOM elements
|
|
290
|
+
const startScreen = document.getElementById('start-screen');
|
|
291
|
+
const gameOverScreen = document.getElementById('game-over-screen');
|
|
292
|
+
const currentScoreDisplay = document.getElementById('current-score');
|
|
293
|
+
const finalScoreEl = document.getElementById('final-score');
|
|
294
|
+
const bestScoreEl = document.getElementById('best-score');
|
|
295
|
+
|
|
296
|
+
// Input handling
|
|
297
|
+
function handleInput(e) {
|
|
298
|
+
if (!isPlaying) {
|
|
299
|
+
if (isGameOver) {
|
|
300
|
+
resetGame();
|
|
301
|
+
}
|
|
302
|
+
startGame();
|
|
303
|
+
} else if (!isGameOver) {
|
|
304
|
+
bird.velocity = JUMP_STRENGTH;
|
|
305
|
+
bird.wingState = 1;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
document.addEventListener('keydown', (e) => {
|
|
310
|
+
if (e.code === 'Space' || e.code === 'ArrowUp') handleInput(e);
|
|
311
|
+
});
|
|
312
|
+
canvas.addEventListener('pointerdown', handleInput);
|
|
313
|
+
|
|
314
|
+
function startGame() {
|
|
315
|
+
isPlaying = true;
|
|
316
|
+
isGameOver = false;
|
|
317
|
+
startScreen.classList.add('hidden');
|
|
318
|
+
currentScoreDisplay.classList.remove('hidden');
|
|
319
|
+
resetGameState();
|
|
320
|
+
gameLoop();
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function resetGameState() {
|
|
324
|
+
bird = { x: 50, y: 200, velocity: 0, radius: 15, wingState: 0 };
|
|
325
|
+
pipes = [];
|
|
326
|
+
score = 0;
|
|
327
|
+
frameCount = 0;
|
|
328
|
+
currentScoreDisplay.textContent = score;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
function resetGame() {
|
|
332
|
+
isGameOver = false;
|
|
333
|
+
isPlaying = true;
|
|
334
|
+
gameOverScreen.classList.add('hidden');
|
|
335
|
+
currentScoreDisplay.classList.remove('hidden');
|
|
336
|
+
resetGameState();
|
|
337
|
+
gameLoop();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function spawnPipe() {
|
|
341
|
+
const minHeight = 100;
|
|
342
|
+
const maxHeight = 400;
|
|
343
|
+
const topHeight = Math.floor(Math.random() * (maxHeight - minHeight + 1) + minHeight);
|
|
344
|
+
const bottomHeight = canvas.height - topHeight - PIPE_GAP;
|
|
345
|
+
|
|
346
|
+
pipes.push({
|
|
347
|
+
x: canvas.width,
|
|
348
|
+
topHeight: topHeight,
|
|
349
|
+
bottomY: topHeight + PIPE_GAP,
|
|
350
|
+
bottomHeight: bottomHeight,
|
|
351
|
+
passed: false
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function update() {
|
|
356
|
+
if (isGameOver) return;
|
|
357
|
+
|
|
358
|
+
// Bird physics
|
|
359
|
+
bird.velocity += GRAVITY;
|
|
360
|
+
bird.y += bird.velocity;
|
|
361
|
+
|
|
362
|
+
// Floor/ceiling collision
|
|
363
|
+
if (bird.y + bird.radius > canvas.height || bird.y - bird.radius < 0) {
|
|
364
|
+
gameOver();
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// Pipe spawning
|
|
369
|
+
frameCount++;
|
|
370
|
+
if (frameCount % PIPE_SPAWN_RATE === 0) {
|
|
371
|
+
spawnPipe();
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// Pipe movement and collision
|
|
375
|
+
for (let i = pipes.length - 1; i >= 0; i--) {
|
|
376
|
+
const pipe = pipes[i];
|
|
377
|
+
pipe.x -= PIPE_SPEED;
|
|
378
|
+
|
|
379
|
+
// Remove off-screen pipes
|
|
380
|
+
if (pipe.x + 60 < 0) {
|
|
381
|
+
pipes.splice(i, 1);
|
|
382
|
+
continue;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// Collision detection (simplified rect-circle)
|
|
386
|
+
const pipeWidth = 60;
|
|
387
|
+
const pipeX = pipe.x;
|
|
388
|
+
const pipeLeft = pipeX;
|
|
389
|
+
const pipeRight = pipeX + pipeWidth;
|
|
390
|
+
|
|
391
|
+
// Bird is circle, pipes are rects
|
|
392
|
+
const birdLeft = bird.x - bird.radius + 4; // +4 for beak offset
|
|
393
|
+
const birdRight = bird.x + bird.radius + 2;
|
|
394
|
+
const birdTop = bird.y - bird.radius;
|
|
395
|
+
const birdBottom = bird.y + bird.radius;
|
|
396
|
+
|
|
397
|
+
// Horizontal collision check
|
|
398
|
+
if (birdRight > pipeLeft && birdLeft < pipeRight) {
|
|
399
|
+
// Top pipe collision
|
|
400
|
+
if (birdTop < pipe.topHeight) {
|
|
401
|
+
gameOver();
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
// Bottom pipe collision
|
|
405
|
+
if (birdBottom > pipe.bottomY) {
|
|
406
|
+
gameOver();
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Score counting
|
|
412
|
+
if (pipe.x + pipeWidth < bird.x && !pipe.passued) {
|
|
413
|
+
pipe.passed = true;
|
|
414
|
+
score++;
|
|
415
|
+
currentScoreDisplay.textContent = score;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// Animate wings
|
|
420
|
+
if (bird.wingState > 0) {
|
|
421
|
+
bird.wingState = (bird.wingState + 0.2) % 2;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function draw() {
|
|
426
|
+
// Clear canvas
|
|
427
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
428
|
+
|
|
429
|
+
// Draw pipes
|
|
430
|
+
pipes.forEach(pipe => {
|
|
431
|
+
// Top pipe
|
|
432
|
+
ctx.fillStyle = '#46c';
|
|
433
|
+
ctx.fillRect(pipe.x, 0, 60, pipe.topHeight);
|
|
434
|
+
ctx.fillStyle = '#34a';
|
|
435
|
+
ctx.fillRect(pipe.x, pipe.topHeight - 20, 60, 20); // Cap
|
|
436
|
+
|
|
437
|
+
// Bottom pipe
|
|
438
|
+
ctx.fillStyle = '#46c';
|
|
439
|
+
ctx.fillRect(pipe.x, pipe.bottomY, 60, canvas.height - pipe.bottomY);
|
|
440
|
+
ctx.fillStyle = '#34a';
|
|
441
|
+
ctx.fillRect(pipe.x, pipe.bottomY - 20, 60, 20); // Cap
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
// Draw bird (circle with beak)
|
|
445
|
+
ctx.fillStyle = '#e3bc4e';
|
|
446
|
+
ctx.beginPath();
|
|
447
|
+
ctx.arc(bird.x, bird.y, bird.radius, 0, Math.PI * 2);
|
|
448
|
+
ctx.fill();
|
|
449
|
+
|
|
450
|
+
// Beak
|
|
451
|
+
ctx.fillStyle = '#e04c4c';
|
|
452
|
+
ctx.beginPath();
|
|
453
|
+
ctx.moveTo(bird.x + bird.radius - 4, bird.y - 4);
|
|
454
|
+
ctx.lineTo(bird.x + bird.radius + 10, bird.y);
|
|
455
|
+
ctx.lineTo(bird.x + bird.radius - 4, bird.y + 4);
|
|
456
|
+
ctx.fill();
|
|
457
|
+
|
|
458
|
+
// Eyes
|
|
459
|
+
ctx.fillStyle = 'black';
|
|
460
|
+
ctx.beginPath();
|
|
461
|
+
ctx.arc(bird.x + 5, bird.y - 6, 3, 0, Math.PI * 2);
|
|
462
|
+
ctx.fill();
|
|
463
|
+
|
|
464
|
+
// Wings
|
|
465
|
+
ctx.fillStyle = '#c4a';
|
|
466
|
+
ctx.beginPath();
|
|
467
|
+
ctx.ellipse(bird.x - 5, bird.y + 5, 10, 6, 0, 0, Math.PI * 2);
|
|
468
|
+
ctx.fill();
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function gameOver() {
|
|
472
|
+
isGameOver = true;
|
|
473
|
+
isPlaying = false;
|
|
474
|
+
|
|
475
|
+
// Update best score
|
|
476
|
+
if (score > bestScore) {
|
|
477
|
+
bestScore = score;
|
|
478
|
+
localStorage.setItem('flappyBest', bestScore);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// Show game over screen
|
|
482
|
+
currentScoreDisplay.classList.add('hidden');
|
|
483
|
+
gameOverScreen.classList.remove('hidden');
|
|
484
|
+
finalScoreEl.textContent = score;
|
|
485
|
+
bestScoreEl.textContent = bestScore;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
function gameLoop() {
|
|
489
|
+
if (!isPlaying) return;
|
|
490
|
+
|
|
491
|
+
update();
|
|
492
|
+
draw();
|
|
493
|
+
requestAnimationFrame(gameLoop);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// Initial draw
|
|
497
|
+
draw();
|
|
498
|
+
</script>
|
|
499
|
+
</body>
|
|
500
|
+
</html>
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
{% endcode %}
|
|
504
|
+
{% endcolumn %}
|
|
505
|
+
{% endcolumns %}
|
|
506
|
+
|
|
507
|
+
### ✨ Deploy with llama-server and OpenAI's completion library
|
|
508
|
+
|
|
509
|
+
{% hint style="success" %}
|
|
510
|
+
Using `--kv-unified` can make inference serving faster in llama.cpp! See <https://www.reddit.com/r/LocalLLaMA/comments/1qnwa33/glm_47_flash_huge_performance_improvement_with_kvu/>
|
|
511
|
+
{% endhint %}
|
|
512
|
+
|
|
513
|
+
After installing llama.cpp as per [#run-kimi-k2-thinking-in-llama.cpp](#run-kimi-k2-thinking-in-llama.cpp "mention"), you can use the below to launch an OpenAI compatible server:
|
|
514
|
+
|
|
515
|
+
{% code overflow="wrap" %}
|
|
516
|
+
|
|
517
|
+
```bash
|
|
518
|
+
LLAMA_SET_ROWS=1 ./llama.cpp/llama-server \
|
|
519
|
+
--model unsloth/Kimi-K2.5-GGUF/UD-TQ1_0/Kimi-K2.5-UD-TQ1_0-00001-of-00005.gguf \
|
|
520
|
+
--special \
|
|
521
|
+
--alias "unsloth/Kimi-K2.5" \
|
|
522
|
+
--min_p 0.01 \
|
|
523
|
+
--ctx-size 16384 \
|
|
524
|
+
--port 8001 \
|
|
525
|
+
--fit on \
|
|
526
|
+
--jinja \
|
|
527
|
+
--kv-unified
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
{% endcode %}
|
|
531
|
+
|
|
532
|
+
Then use OpenAI's Python library after `pip install openai` :
|
|
533
|
+
|
|
534
|
+
```python
|
|
535
|
+
from openai import OpenAI
|
|
536
|
+
import json
|
|
537
|
+
openai_client = OnAI(
|
|
538
|
+
base_url = "http://127.0.0.1:8001/v1",
|
|
539
|
+
api_key = "sk-no-key-required",
|
|
540
|
+
)
|
|
541
|
+
completion = openai_client.chat.completions.create(
|
|
542
|
+
model = "unsloth/Kimi-K2.5",
|
|
543
|
+
messages = [{"role": "user", "content": "What is 1+1?"},],
|
|
544
|
+
)
|
|
545
|
+
print(completion.choices[0].message.content)
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
And we get:
|
|
549
|
+
|
|
550
|
+
<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FkltZYBKtXcy5TzKKvGzN%2Fimage.png?alt=media&token=d0a7c6e2-bac8-4d95-a5fa-446975dff581" alt="" width="563"><figcaption></figcaption></figure>
|
|
551
|
+
|
|
552
|
+
And in the other llama-server screen:
|
|
553
|
+
|
|
554
|
+
<figure><img src="https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FjwlPZF5cdLHaHYgOhna3%2Fimage.png?alt=media&token=602f1cbf-80bf-49ce-bbdb-21862d3d65fe" alt="" width="563"><figcaption></figcaption></figure>
|
|
555
|
+
|
|
556
|
+
### 📊 Benchmarks
|
|
557
|
+
|
|
558
|
+
You can view further below for benchmarks in table format:
|
|
559
|
+
|
|
560
|
+
<figure><img src="https://32155352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FxRTS9YSfD8G0d9KiXK3W%2Fkimi%20k25%20benchmarks.jpg?alt=media&token=b537ff73-136e-4bc6-ba76-0882ee30c72c" alt="" width="375"><figcaption></figcaption></figure>
|
|
561
|
+
|
|
562
|
+
#### Reasoning & Knowledge
|
|
563
|
+
|
|
564
|
+
| Benchmark | Kimi K2.5 | GPT-5.2 | Claude 4.5 Opus | Gemini 3 Pro | DeepSeek V3.2 | Qwen3-VL-235B-A22B-Thinking |
|
|
565
|
+
| ------------------- | --------: | ------: | --------------: | -----------: | ------------: | --------------------------: |
|
|
566
|
+
| HLE-Full | 30.1 | 34.5 | 30.8 | 37.5 | 25.1† | - |
|
|
567
|
+
| HLE-Full (w/ tools) | 50.2 | 45.5 | 43.2 | 45.8 | 40.8† | - |
|
|
568
|
+
| AIME 2025 | 96.1 | 100 | 92.8 | 95.0 | 93.1 | - |
|
|
569
|
+
| HMMT 2025 (Feb) | 95.4 | 99.4 | 92.9\* | 97.3\* | 92.5 | - |
|
|
570
|
+
| IMO-AnswerBench | 81.8 | 86.3 | 78.5\* | 83.1\* | 78.3 | - |
|
|
571
|
+
| GPQA-Diamond | 87.6 | 92.4 | 87.0 | 91.9 | 82.4 | - |
|
|
572
|
+
| MMLU-Pro | 87.1 | 86.7\* | 89.3\* | 90.1 | 85.0 | - |
|
|
573
|
+
|
|
574
|
+
#### Image & Video
|
|
575
|
+
|
|
576
|
+
| Benchmark | Kimi K2.5 | GPT-5.2 | Claude 4.5 Opus | Gemini 3 Pro | DeepSeek V3.2 | Qwen3-VL-235B-A22B-Thinking |
|
|
577
|
+
| -------------------- | --------: | ------: | --------------: | -----------: | ------------: | --------------------------: |
|
|
578
|
+
| MMMU-Pro | 78.5 | 79.5\* | 74.0 | 81.0 | - | 69.3 |
|
|
579
|
+
| CharXiv (RQ) | 77.5 | 82.1 | 67.2\* | 81.4 | - | 66.1 |
|
|
580
|
+
| MathVision | 84.2 | 83.0 | 77.1\* | 86.1\* | - | 74.6 |
|
|
581
|
+
| MathVista (mini) | 90.1 | 82.8\* | 80.2\* | 89.8\* | - | 85.8 |
|
|
582
|
+
| ZeroBench | 9 | 9\* | 3\* | 8\* | - | 4\* |
|
|
583
|
+
| ZeroBench (w/ tools) | 11 | 7\* | 9\* | 12\* | - | 3\* |
|
|
584
|
+
| OCRBench | 92.3 | 80.7\* | 86.5\* | 90.3\* | - | 87.5 |
|
|
585
|
+
| OmniDocBench 1.5 | 88.8 | 85.7 | 87.7\* | 88.5 | - | 82.0\* |
|
|
586
|
+
| InfoVQA (val) | 92.6 | 84\* | 76.9\* | 57.2\* | - | 89.5 |
|
|
587
|
+
| SimpleVQA | 71.2 | 55.8\* | 69.7\* | 69.7\* | - | 56.8\* |
|
|
588
|
+
| WorldVQA | 46.3 | 28.0 | 36.8 | 47.4 | - | 23.5 |
|
|
589
|
+
| VideoMMMU | 86.6 | 85.9 | 84.4\* | 87.6 | - | 80.0 |
|
|
590
|
+
| MMVU | 80.4 | 80.8\* | 77.3 | 77.5 | - | 71.1 |
|
|
591
|
+
| MotionBench | 70.4 | 64.8 | 60.3 | 70.3 | - | - |
|
|
592
|
+
| VideoMME | 87.4 | 86.0\* | - | 88.4\* | - | 79.0 |
|
|
593
|
+
| LongVideoBench | 79.8 | 76.5\* | 67.2\* | 77.7\* | - | 65.6\* |
|
|
594
|
+
| LVBench | 75.9 | - | - | 73.5\* | - | 63.6 |
|
|
595
|
+
|
|
596
|
+
#### Coding
|
|
597
|
+
|
|
598
|
+
| Benchmark | Kimi K2.5 | GPT-5.2 | Claude 4.5 Opus | Gemini 3 Pro | DeepSeek V3.2 | Qwen3-VL-235B-A22B-Thinking |
|
|
599
|
+
| ---------------------- | --------: | ------: | --------------: | -----------: | ------------: | --------------------------: |
|
|
600
|
+
| SWE-Bench Verified | 76.8 | 80.0 | 80.9 | 76.2 | 73.1 | - |
|
|
601
|
+
| SWE-Bench Pro | 50.7 | 55.6 | 55.4\* | - | - | - |
|
|
602
|
+
| SWE-Bench Multilingual | 73.0 | 72.0 | 77.5 | 65.0 | 70.2 | - |
|
|
603
|
+
| Terminal Bench 2.0 | 50.8 | 54.0 | 59.3 | 54.2 | 46.4 | - |
|
|
604
|
+
| PaperBench | 63.5 | 63.7\* | 72.9\* | - | 47.1 | - |
|
|
605
|
+
| CyberGym | 41.3 | - | 50.6 | 39.9\* | 17.3\* | - |
|
|
606
|
+
| SciCode | 48.7 | 52.1 | 49.5 | 56.1 | 38.9 | - |
|
|
607
|
+
| OJBench (cpp) | 57.4 | - | 54.6\* | 68.5\* | 54.7\* | - |
|
|
608
|
+
| LiveCodeBench (v6) | 85.0 | - | 82.2\* | 87.4\* | 83.3 | - |
|
|
609
|
+
|
|
610
|
+
#### Long Context
|
|
611
|
+
|
|
612
|
+
| Benchmark | Kimi K2.5 | GPT-5.2 | Claude 4.5 Opus | Gemini 3 Pro | DeepSeek V3.2 | Qwen3-VL-235B-A22B-Thinking |
|
|
613
|
+
| ------------ | --------: | ------: | --------------: | -----------: | ------------: | --------------------------: |
|
|
614
|
+
| Longbench v2 | 61.0 | 54.5\* | 64.4\* | 68.2\* | 59.8\* | - |
|
|
615
|
+
| AA-LCR | 70.0 | 72.3\* | 71.3\* | 65.3\* | 64.3\* | - |
|
|
616
|
+
|
|
617
|
+
#### Agentic Search
|
|
618
|
+
|
|
619
|
+
| Benchmark | Kimi K2.5 | GPT-5.2 | Claude 4.5 Opus | Gemini 3 Pro | DeepSeek V3.2 | Qwen3-VL-235B-A22B-Thinking |
|
|
620
|
+
| -------------------------------- | --------: | ------: | --------------: | -----------: | ------------: | --------------------------: |
|
|
621
|
+
| BrowseComp | 60.6 | 65.8 | 37.0 | 37.8 | 51.4 | - |
|
|
622
|
+
| BrowseComp (w/ctx manage) | 74.9 | 65.8 | 57.8 | 59.2 | 67.6 | - |
|
|
623
|
+
| BrowseComp (Agent Swarm) | 78.4 | - | - | - | - | - |
|
|
624
|
+
| WideSearch (item-f1) | 72.7 | - | 76.2\* | 57.0 | 32.5\* | - |
|
|
625
|
+
| WideSearch (item-f1 Agent Swarm) | 79.0 | - | - | - | - | - |
|
|
626
|
+
| DeepSearchQA | 77.1 | 71.3\* | 76.1\* | 63.2\* | 60.9\* | - |
|
|
627
|
+
| FinSearchCompT2\&T3 | 67.8 | - | 66.2\* | 49.9 | 59.1\* | - |
|
|
628
|
+
| Seal-0 | 57.4 | 45.0 | 47.7\* | 45.5\* | 49.5\* | - |
|
|
629
|
+
|
|
630
|
+
#### Notes
|
|
631
|
+
|
|
632
|
+
* `*` = score re-evaluated by the authors (not publicly available previously).
|
|
633
|
+
* `†` = DeepSeek V3.2 score corresponds to its text-only subset (as noted in the footnotes).
|
|
634
|
+
* `-` = not evaluated / not available.
|