@synsci/cli-darwin-x64 1.1.49
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/accelerate/SKILL.md +332 -0
- package/bin/skills/accelerate/references/custom-plugins.md +453 -0
- package/bin/skills/accelerate/references/megatron-integration.md +489 -0
- package/bin/skills/accelerate/references/performance.md +525 -0
- package/bin/skills/audiocraft/SKILL.md +564 -0
- package/bin/skills/audiocraft/references/advanced-usage.md +666 -0
- package/bin/skills/audiocraft/references/troubleshooting.md +504 -0
- package/bin/skills/autogpt/SKILL.md +403 -0
- package/bin/skills/autogpt/references/advanced-usage.md +535 -0
- package/bin/skills/autogpt/references/troubleshooting.md +420 -0
- package/bin/skills/awq/SKILL.md +310 -0
- package/bin/skills/awq/references/advanced-usage.md +324 -0
- package/bin/skills/awq/references/troubleshooting.md +344 -0
- package/bin/skills/axolotl/SKILL.md +158 -0
- package/bin/skills/axolotl/references/api.md +5548 -0
- package/bin/skills/axolotl/references/dataset-formats.md +1029 -0
- package/bin/skills/axolotl/references/index.md +15 -0
- package/bin/skills/axolotl/references/other.md +3563 -0
- package/bin/skills/bigcode-evaluation-harness/SKILL.md +405 -0
- package/bin/skills/bigcode-evaluation-harness/references/benchmarks.md +393 -0
- package/bin/skills/bigcode-evaluation-harness/references/custom-tasks.md +424 -0
- package/bin/skills/bigcode-evaluation-harness/references/issues.md +394 -0
- package/bin/skills/bitsandbytes/SKILL.md +411 -0
- package/bin/skills/bitsandbytes/references/memory-optimization.md +521 -0
- package/bin/skills/bitsandbytes/references/qlora-training.md +521 -0
- package/bin/skills/bitsandbytes/references/quantization-formats.md +447 -0
- package/bin/skills/blip-2/SKILL.md +564 -0
- package/bin/skills/blip-2/references/advanced-usage.md +680 -0
- package/bin/skills/blip-2/references/troubleshooting.md +526 -0
- package/bin/skills/chroma/SKILL.md +406 -0
- package/bin/skills/chroma/references/integration.md +38 -0
- package/bin/skills/clip/SKILL.md +253 -0
- package/bin/skills/clip/references/applications.md +207 -0
- package/bin/skills/constitutional-ai/SKILL.md +290 -0
- package/bin/skills/crewai/SKILL.md +498 -0
- package/bin/skills/crewai/references/flows.md +438 -0
- package/bin/skills/crewai/references/tools.md +429 -0
- package/bin/skills/crewai/references/troubleshooting.md +480 -0
- package/bin/skills/deepspeed/SKILL.md +141 -0
- package/bin/skills/deepspeed/references/08.md +17 -0
- package/bin/skills/deepspeed/references/09.md +173 -0
- package/bin/skills/deepspeed/references/2020.md +378 -0
- package/bin/skills/deepspeed/references/2023.md +279 -0
- package/bin/skills/deepspeed/references/assets.md +179 -0
- package/bin/skills/deepspeed/references/index.md +35 -0
- package/bin/skills/deepspeed/references/mii.md +118 -0
- package/bin/skills/deepspeed/references/other.md +1191 -0
- package/bin/skills/deepspeed/references/tutorials.md +6554 -0
- package/bin/skills/dspy/SKILL.md +590 -0
- package/bin/skills/dspy/references/examples.md +663 -0
- package/bin/skills/dspy/references/modules.md +475 -0
- package/bin/skills/dspy/references/optimizers.md +566 -0
- package/bin/skills/faiss/SKILL.md +221 -0
- package/bin/skills/faiss/references/index_types.md +280 -0
- package/bin/skills/flash-attention/SKILL.md +367 -0
- package/bin/skills/flash-attention/references/benchmarks.md +215 -0
- package/bin/skills/flash-attention/references/transformers-integration.md +293 -0
- package/bin/skills/gguf/SKILL.md +427 -0
- package/bin/skills/gguf/references/advanced-usage.md +504 -0
- package/bin/skills/gguf/references/troubleshooting.md +442 -0
- package/bin/skills/gptq/SKILL.md +450 -0
- package/bin/skills/gptq/references/calibration.md +337 -0
- package/bin/skills/gptq/references/integration.md +129 -0
- package/bin/skills/gptq/references/troubleshooting.md +95 -0
- package/bin/skills/grpo-rl-training/README.md +97 -0
- package/bin/skills/grpo-rl-training/SKILL.md +572 -0
- package/bin/skills/grpo-rl-training/examples/reward_functions_library.py +393 -0
- package/bin/skills/grpo-rl-training/templates/basic_grpo_training.py +228 -0
- package/bin/skills/guidance/SKILL.md +572 -0
- package/bin/skills/guidance/references/backends.md +554 -0
- package/bin/skills/guidance/references/constraints.md +674 -0
- package/bin/skills/guidance/references/examples.md +767 -0
- package/bin/skills/hqq/SKILL.md +445 -0
- package/bin/skills/hqq/references/advanced-usage.md +528 -0
- package/bin/skills/hqq/references/troubleshooting.md +503 -0
- package/bin/skills/hugging-face-cli/SKILL.md +191 -0
- package/bin/skills/hugging-face-cli/references/commands.md +954 -0
- package/bin/skills/hugging-face-cli/references/examples.md +374 -0
- package/bin/skills/hugging-face-datasets/SKILL.md +547 -0
- package/bin/skills/hugging-face-datasets/examples/diverse_training_examples.json +239 -0
- package/bin/skills/hugging-face-datasets/examples/system_prompt_template.txt +196 -0
- package/bin/skills/hugging-face-datasets/examples/training_examples.json +176 -0
- package/bin/skills/hugging-face-datasets/scripts/dataset_manager.py +522 -0
- package/bin/skills/hugging-face-datasets/scripts/sql_manager.py +844 -0
- package/bin/skills/hugging-face-datasets/templates/chat.json +55 -0
- package/bin/skills/hugging-face-datasets/templates/classification.json +62 -0
- package/bin/skills/hugging-face-datasets/templates/completion.json +51 -0
- package/bin/skills/hugging-face-datasets/templates/custom.json +75 -0
- package/bin/skills/hugging-face-datasets/templates/qa.json +54 -0
- package/bin/skills/hugging-face-datasets/templates/tabular.json +81 -0
- package/bin/skills/hugging-face-evaluation/SKILL.md +656 -0
- package/bin/skills/hugging-face-evaluation/examples/USAGE_EXAMPLES.md +382 -0
- package/bin/skills/hugging-face-evaluation/examples/artificial_analysis_to_hub.py +141 -0
- package/bin/skills/hugging-face-evaluation/examples/example_readme_tables.md +135 -0
- package/bin/skills/hugging-face-evaluation/examples/metric_mapping.json +50 -0
- package/bin/skills/hugging-face-evaluation/requirements.txt +20 -0
- package/bin/skills/hugging-face-evaluation/scripts/evaluation_manager.py +1374 -0
- package/bin/skills/hugging-face-evaluation/scripts/inspect_eval_uv.py +104 -0
- package/bin/skills/hugging-face-evaluation/scripts/inspect_vllm_uv.py +317 -0
- package/bin/skills/hugging-face-evaluation/scripts/lighteval_vllm_uv.py +303 -0
- package/bin/skills/hugging-face-evaluation/scripts/run_eval_job.py +98 -0
- package/bin/skills/hugging-face-evaluation/scripts/run_vllm_eval_job.py +331 -0
- package/bin/skills/hugging-face-evaluation/scripts/test_extraction.py +206 -0
- package/bin/skills/hugging-face-jobs/SKILL.md +1041 -0
- package/bin/skills/hugging-face-jobs/index.html +216 -0
- package/bin/skills/hugging-face-jobs/references/hardware_guide.md +336 -0
- package/bin/skills/hugging-face-jobs/references/hub_saving.md +352 -0
- package/bin/skills/hugging-face-jobs/references/token_usage.md +546 -0
- package/bin/skills/hugging-face-jobs/references/troubleshooting.md +475 -0
- package/bin/skills/hugging-face-jobs/scripts/cot-self-instruct.py +718 -0
- package/bin/skills/hugging-face-jobs/scripts/finepdfs-stats.py +546 -0
- package/bin/skills/hugging-face-jobs/scripts/generate-responses.py +587 -0
- package/bin/skills/hugging-face-model-trainer/SKILL.md +711 -0
- package/bin/skills/hugging-face-model-trainer/references/gguf_conversion.md +296 -0
- package/bin/skills/hugging-face-model-trainer/references/hardware_guide.md +283 -0
- package/bin/skills/hugging-face-model-trainer/references/hub_saving.md +364 -0
- package/bin/skills/hugging-face-model-trainer/references/reliability_principles.md +371 -0
- package/bin/skills/hugging-face-model-trainer/references/trackio_guide.md +189 -0
- package/bin/skills/hugging-face-model-trainer/references/training_methods.md +150 -0
- package/bin/skills/hugging-face-model-trainer/references/training_patterns.md +203 -0
- package/bin/skills/hugging-face-model-trainer/references/troubleshooting.md +282 -0
- package/bin/skills/hugging-face-model-trainer/scripts/convert_to_gguf.py +424 -0
- package/bin/skills/hugging-face-model-trainer/scripts/dataset_inspector.py +417 -0
- package/bin/skills/hugging-face-model-trainer/scripts/estimate_cost.py +150 -0
- package/bin/skills/hugging-face-model-trainer/scripts/train_dpo_example.py +106 -0
- package/bin/skills/hugging-face-model-trainer/scripts/train_grpo_example.py +89 -0
- package/bin/skills/hugging-face-model-trainer/scripts/train_sft_example.py +122 -0
- package/bin/skills/hugging-face-paper-publisher/SKILL.md +627 -0
- package/bin/skills/hugging-face-paper-publisher/examples/example_usage.md +327 -0
- package/bin/skills/hugging-face-paper-publisher/references/quick_reference.md +216 -0
- package/bin/skills/hugging-face-paper-publisher/scripts/paper_manager.py +508 -0
- package/bin/skills/hugging-face-paper-publisher/templates/arxiv.md +299 -0
- package/bin/skills/hugging-face-paper-publisher/templates/ml-report.md +358 -0
- package/bin/skills/hugging-face-paper-publisher/templates/modern.md +319 -0
- package/bin/skills/hugging-face-paper-publisher/templates/standard.md +201 -0
- package/bin/skills/hugging-face-tool-builder/SKILL.md +115 -0
- package/bin/skills/hugging-face-tool-builder/references/baseline_hf_api.py +57 -0
- package/bin/skills/hugging-face-tool-builder/references/baseline_hf_api.sh +40 -0
- package/bin/skills/hugging-face-tool-builder/references/baseline_hf_api.tsx +57 -0
- package/bin/skills/hugging-face-tool-builder/references/find_models_by_paper.sh +230 -0
- package/bin/skills/hugging-face-tool-builder/references/hf_enrich_models.sh +96 -0
- package/bin/skills/hugging-face-tool-builder/references/hf_model_card_frontmatter.sh +188 -0
- package/bin/skills/hugging-face-tool-builder/references/hf_model_papers_auth.sh +171 -0
- package/bin/skills/hugging-face-trackio/SKILL.md +65 -0
- package/bin/skills/hugging-face-trackio/references/logging_metrics.md +206 -0
- package/bin/skills/hugging-face-trackio/references/retrieving_metrics.md +223 -0
- package/bin/skills/huggingface-tokenizers/SKILL.md +516 -0
- package/bin/skills/huggingface-tokenizers/references/algorithms.md +653 -0
- package/bin/skills/huggingface-tokenizers/references/integration.md +637 -0
- package/bin/skills/huggingface-tokenizers/references/pipeline.md +723 -0
- package/bin/skills/huggingface-tokenizers/references/training.md +565 -0
- package/bin/skills/instructor/SKILL.md +740 -0
- package/bin/skills/instructor/references/examples.md +107 -0
- package/bin/skills/instructor/references/providers.md +70 -0
- package/bin/skills/instructor/references/validation.md +606 -0
- package/bin/skills/knowledge-distillation/SKILL.md +458 -0
- package/bin/skills/knowledge-distillation/references/minillm.md +334 -0
- package/bin/skills/lambda-labs/SKILL.md +545 -0
- package/bin/skills/lambda-labs/references/advanced-usage.md +611 -0
- package/bin/skills/lambda-labs/references/troubleshooting.md +530 -0
- package/bin/skills/langchain/SKILL.md +480 -0
- package/bin/skills/langchain/references/agents.md +499 -0
- package/bin/skills/langchain/references/integration.md +562 -0
- package/bin/skills/langchain/references/rag.md +600 -0
- package/bin/skills/langsmith/SKILL.md +422 -0
- package/bin/skills/langsmith/references/advanced-usage.md +548 -0
- package/bin/skills/langsmith/references/troubleshooting.md +537 -0
- package/bin/skills/litgpt/SKILL.md +469 -0
- package/bin/skills/litgpt/references/custom-models.md +568 -0
- package/bin/skills/litgpt/references/distributed-training.md +451 -0
- package/bin/skills/litgpt/references/supported-models.md +336 -0
- package/bin/skills/litgpt/references/training-recipes.md +619 -0
- package/bin/skills/llama-cpp/SKILL.md +258 -0
- package/bin/skills/llama-cpp/references/optimization.md +89 -0
- package/bin/skills/llama-cpp/references/quantization.md +213 -0
- package/bin/skills/llama-cpp/references/server.md +125 -0
- package/bin/skills/llama-factory/SKILL.md +80 -0
- package/bin/skills/llama-factory/references/_images.md +23 -0
- package/bin/skills/llama-factory/references/advanced.md +1055 -0
- package/bin/skills/llama-factory/references/getting_started.md +349 -0
- package/bin/skills/llama-factory/references/index.md +19 -0
- package/bin/skills/llama-factory/references/other.md +31 -0
- package/bin/skills/llamaguard/SKILL.md +337 -0
- package/bin/skills/llamaindex/SKILL.md +569 -0
- package/bin/skills/llamaindex/references/agents.md +83 -0
- package/bin/skills/llamaindex/references/data_connectors.md +108 -0
- package/bin/skills/llamaindex/references/query_engines.md +406 -0
- package/bin/skills/llava/SKILL.md +304 -0
- package/bin/skills/llava/references/training.md +197 -0
- package/bin/skills/lm-evaluation-harness/SKILL.md +490 -0
- package/bin/skills/lm-evaluation-harness/references/api-evaluation.md +490 -0
- package/bin/skills/lm-evaluation-harness/references/benchmark-guide.md +488 -0
- package/bin/skills/lm-evaluation-harness/references/custom-tasks.md +602 -0
- package/bin/skills/lm-evaluation-harness/references/distributed-eval.md +519 -0
- package/bin/skills/long-context/SKILL.md +536 -0
- package/bin/skills/long-context/references/extension_methods.md +468 -0
- package/bin/skills/long-context/references/fine_tuning.md +611 -0
- package/bin/skills/long-context/references/rope.md +402 -0
- package/bin/skills/mamba/SKILL.md +260 -0
- package/bin/skills/mamba/references/architecture-details.md +206 -0
- package/bin/skills/mamba/references/benchmarks.md +255 -0
- package/bin/skills/mamba/references/training-guide.md +388 -0
- package/bin/skills/megatron-core/SKILL.md +366 -0
- package/bin/skills/megatron-core/references/benchmarks.md +249 -0
- package/bin/skills/megatron-core/references/parallelism-guide.md +404 -0
- package/bin/skills/megatron-core/references/production-examples.md +473 -0
- package/bin/skills/megatron-core/references/training-recipes.md +547 -0
- package/bin/skills/miles/SKILL.md +315 -0
- package/bin/skills/miles/references/api-reference.md +141 -0
- package/bin/skills/miles/references/troubleshooting.md +352 -0
- package/bin/skills/mlflow/SKILL.md +704 -0
- package/bin/skills/mlflow/references/deployment.md +744 -0
- package/bin/skills/mlflow/references/model-registry.md +770 -0
- package/bin/skills/mlflow/references/tracking.md +680 -0
- package/bin/skills/modal/SKILL.md +341 -0
- package/bin/skills/modal/references/advanced-usage.md +503 -0
- package/bin/skills/modal/references/troubleshooting.md +494 -0
- package/bin/skills/model-merging/SKILL.md +539 -0
- package/bin/skills/model-merging/references/evaluation.md +462 -0
- package/bin/skills/model-merging/references/examples.md +428 -0
- package/bin/skills/model-merging/references/methods.md +352 -0
- package/bin/skills/model-pruning/SKILL.md +495 -0
- package/bin/skills/model-pruning/references/wanda.md +347 -0
- package/bin/skills/moe-training/SKILL.md +526 -0
- package/bin/skills/moe-training/references/architectures.md +432 -0
- package/bin/skills/moe-training/references/inference.md +348 -0
- package/bin/skills/moe-training/references/training.md +425 -0
- package/bin/skills/nanogpt/SKILL.md +290 -0
- package/bin/skills/nanogpt/references/architecture.md +382 -0
- package/bin/skills/nanogpt/references/data.md +476 -0
- package/bin/skills/nanogpt/references/training.md +564 -0
- package/bin/skills/nemo-curator/SKILL.md +383 -0
- package/bin/skills/nemo-curator/references/deduplication.md +87 -0
- package/bin/skills/nemo-curator/references/filtering.md +102 -0
- package/bin/skills/nemo-evaluator/SKILL.md +494 -0
- package/bin/skills/nemo-evaluator/references/adapter-system.md +340 -0
- package/bin/skills/nemo-evaluator/references/configuration.md +447 -0
- package/bin/skills/nemo-evaluator/references/custom-benchmarks.md +315 -0
- package/bin/skills/nemo-evaluator/references/execution-backends.md +361 -0
- package/bin/skills/nemo-guardrails/SKILL.md +297 -0
- package/bin/skills/nnsight/SKILL.md +436 -0
- package/bin/skills/nnsight/references/README.md +78 -0
- package/bin/skills/nnsight/references/api.md +344 -0
- package/bin/skills/nnsight/references/tutorials.md +300 -0
- package/bin/skills/openrlhf/SKILL.md +249 -0
- package/bin/skills/openrlhf/references/algorithm-comparison.md +404 -0
- package/bin/skills/openrlhf/references/custom-rewards.md +530 -0
- package/bin/skills/openrlhf/references/hybrid-engine.md +287 -0
- package/bin/skills/openrlhf/references/multi-node-training.md +454 -0
- package/bin/skills/outlines/SKILL.md +652 -0
- package/bin/skills/outlines/references/backends.md +615 -0
- package/bin/skills/outlines/references/examples.md +773 -0
- package/bin/skills/outlines/references/json_generation.md +652 -0
- package/bin/skills/peft/SKILL.md +431 -0
- package/bin/skills/peft/references/advanced-usage.md +514 -0
- package/bin/skills/peft/references/troubleshooting.md +480 -0
- package/bin/skills/phoenix/SKILL.md +475 -0
- package/bin/skills/phoenix/references/advanced-usage.md +619 -0
- package/bin/skills/phoenix/references/troubleshooting.md +538 -0
- package/bin/skills/pinecone/SKILL.md +358 -0
- package/bin/skills/pinecone/references/deployment.md +181 -0
- package/bin/skills/pytorch-fsdp/SKILL.md +126 -0
- package/bin/skills/pytorch-fsdp/references/index.md +7 -0
- package/bin/skills/pytorch-fsdp/references/other.md +4249 -0
- package/bin/skills/pytorch-lightning/SKILL.md +346 -0
- package/bin/skills/pytorch-lightning/references/callbacks.md +436 -0
- package/bin/skills/pytorch-lightning/references/distributed.md +490 -0
- package/bin/skills/pytorch-lightning/references/hyperparameter-tuning.md +556 -0
- package/bin/skills/pyvene/SKILL.md +473 -0
- package/bin/skills/pyvene/references/README.md +73 -0
- package/bin/skills/pyvene/references/api.md +383 -0
- package/bin/skills/pyvene/references/tutorials.md +376 -0
- package/bin/skills/qdrant/SKILL.md +493 -0
- package/bin/skills/qdrant/references/advanced-usage.md +648 -0
- package/bin/skills/qdrant/references/troubleshooting.md +631 -0
- package/bin/skills/ray-data/SKILL.md +326 -0
- package/bin/skills/ray-data/references/integration.md +82 -0
- package/bin/skills/ray-data/references/transformations.md +83 -0
- package/bin/skills/ray-train/SKILL.md +406 -0
- package/bin/skills/ray-train/references/multi-node.md +628 -0
- package/bin/skills/rwkv/SKILL.md +260 -0
- package/bin/skills/rwkv/references/architecture-details.md +344 -0
- package/bin/skills/rwkv/references/rwkv7.md +386 -0
- package/bin/skills/rwkv/references/state-management.md +369 -0
- package/bin/skills/saelens/SKILL.md +386 -0
- package/bin/skills/saelens/references/README.md +70 -0
- package/bin/skills/saelens/references/api.md +333 -0
- package/bin/skills/saelens/references/tutorials.md +318 -0
- package/bin/skills/segment-anything/SKILL.md +500 -0
- package/bin/skills/segment-anything/references/advanced-usage.md +589 -0
- package/bin/skills/segment-anything/references/troubleshooting.md +484 -0
- package/bin/skills/sentence-transformers/SKILL.md +255 -0
- package/bin/skills/sentence-transformers/references/models.md +123 -0
- package/bin/skills/sentencepiece/SKILL.md +235 -0
- package/bin/skills/sentencepiece/references/algorithms.md +200 -0
- package/bin/skills/sentencepiece/references/training.md +304 -0
- package/bin/skills/sglang/SKILL.md +442 -0
- package/bin/skills/sglang/references/deployment.md +490 -0
- package/bin/skills/sglang/references/radix-attention.md +413 -0
- package/bin/skills/sglang/references/structured-generation.md +541 -0
- package/bin/skills/simpo/SKILL.md +219 -0
- package/bin/skills/simpo/references/datasets.md +478 -0
- package/bin/skills/simpo/references/hyperparameters.md +452 -0
- package/bin/skills/simpo/references/loss-functions.md +350 -0
- package/bin/skills/skypilot/SKILL.md +509 -0
- package/bin/skills/skypilot/references/advanced-usage.md +491 -0
- package/bin/skills/skypilot/references/troubleshooting.md +570 -0
- package/bin/skills/slime/SKILL.md +464 -0
- package/bin/skills/slime/references/api-reference.md +392 -0
- package/bin/skills/slime/references/troubleshooting.md +386 -0
- package/bin/skills/speculative-decoding/SKILL.md +467 -0
- package/bin/skills/speculative-decoding/references/lookahead.md +309 -0
- package/bin/skills/speculative-decoding/references/medusa.md +350 -0
- package/bin/skills/stable-diffusion/SKILL.md +519 -0
- package/bin/skills/stable-diffusion/references/advanced-usage.md +716 -0
- package/bin/skills/stable-diffusion/references/troubleshooting.md +555 -0
- package/bin/skills/tensorboard/SKILL.md +629 -0
- package/bin/skills/tensorboard/references/integrations.md +638 -0
- package/bin/skills/tensorboard/references/profiling.md +545 -0
- package/bin/skills/tensorboard/references/visualization.md +620 -0
- package/bin/skills/tensorrt-llm/SKILL.md +187 -0
- package/bin/skills/tensorrt-llm/references/multi-gpu.md +298 -0
- package/bin/skills/tensorrt-llm/references/optimization.md +242 -0
- package/bin/skills/tensorrt-llm/references/serving.md +470 -0
- package/bin/skills/tinker/SKILL.md +362 -0
- package/bin/skills/tinker/references/api-reference.md +168 -0
- package/bin/skills/tinker/references/getting-started.md +157 -0
- package/bin/skills/tinker/references/loss-functions.md +163 -0
- package/bin/skills/tinker/references/models-and-lora.md +139 -0
- package/bin/skills/tinker/references/recipes.md +280 -0
- package/bin/skills/tinker/references/reinforcement-learning.md +212 -0
- package/bin/skills/tinker/references/rendering.md +243 -0
- package/bin/skills/tinker/references/supervised-learning.md +232 -0
- package/bin/skills/tinker-training-cost/SKILL.md +187 -0
- package/bin/skills/tinker-training-cost/scripts/calculate_cost.py +123 -0
- package/bin/skills/torchforge/SKILL.md +433 -0
- package/bin/skills/torchforge/references/api-reference.md +327 -0
- package/bin/skills/torchforge/references/troubleshooting.md +409 -0
- package/bin/skills/torchtitan/SKILL.md +358 -0
- package/bin/skills/torchtitan/references/checkpoint.md +181 -0
- package/bin/skills/torchtitan/references/custom-models.md +258 -0
- package/bin/skills/torchtitan/references/float8.md +133 -0
- package/bin/skills/torchtitan/references/fsdp.md +126 -0
- package/bin/skills/transformer-lens/SKILL.md +346 -0
- package/bin/skills/transformer-lens/references/README.md +54 -0
- package/bin/skills/transformer-lens/references/api.md +362 -0
- package/bin/skills/transformer-lens/references/tutorials.md +339 -0
- package/bin/skills/trl-fine-tuning/SKILL.md +455 -0
- package/bin/skills/trl-fine-tuning/references/dpo-variants.md +227 -0
- package/bin/skills/trl-fine-tuning/references/online-rl.md +82 -0
- package/bin/skills/trl-fine-tuning/references/reward-modeling.md +122 -0
- package/bin/skills/trl-fine-tuning/references/sft-training.md +168 -0
- package/bin/skills/unsloth/SKILL.md +80 -0
- package/bin/skills/unsloth/references/index.md +7 -0
- package/bin/skills/unsloth/references/llms-full.md +16799 -0
- package/bin/skills/unsloth/references/llms-txt.md +12044 -0
- package/bin/skills/unsloth/references/llms.md +82 -0
- package/bin/skills/verl/SKILL.md +391 -0
- package/bin/skills/verl/references/api-reference.md +301 -0
- package/bin/skills/verl/references/troubleshooting.md +391 -0
- package/bin/skills/vllm/SKILL.md +364 -0
- package/bin/skills/vllm/references/optimization.md +226 -0
- package/bin/skills/vllm/references/quantization.md +284 -0
- package/bin/skills/vllm/references/server-deployment.md +255 -0
- package/bin/skills/vllm/references/troubleshooting.md +447 -0
- package/bin/skills/weights-and-biases/SKILL.md +590 -0
- package/bin/skills/weights-and-biases/references/artifacts.md +584 -0
- package/bin/skills/weights-and-biases/references/integrations.md +700 -0
- package/bin/skills/weights-and-biases/references/sweeps.md +847 -0
- package/bin/skills/whisper/SKILL.md +317 -0
- package/bin/skills/whisper/references/languages.md +189 -0
- package/bin/synsc +0 -0
- package/package.json +10 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
# Segment Anything Troubleshooting Guide
|
|
2
|
+
|
|
3
|
+
## Installation Issues
|
|
4
|
+
|
|
5
|
+
### CUDA not available
|
|
6
|
+
|
|
7
|
+
**Error**: `RuntimeError: CUDA not available`
|
|
8
|
+
|
|
9
|
+
**Solutions**:
|
|
10
|
+
```python
|
|
11
|
+
# Check CUDA availability
|
|
12
|
+
import torch
|
|
13
|
+
print(torch.cuda.is_available())
|
|
14
|
+
print(torch.version.cuda)
|
|
15
|
+
|
|
16
|
+
# Install PyTorch with CUDA
|
|
17
|
+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
|
|
18
|
+
|
|
19
|
+
# If CUDA works but SAM doesn't use it
|
|
20
|
+
sam = sam_model_registry["vit_h"](checkpoint="sam_vit_h_4b8939.pth")
|
|
21
|
+
sam.to("cuda") # Explicitly move to GPU
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Import errors
|
|
25
|
+
|
|
26
|
+
**Error**: `ModuleNotFoundError: No module named 'segment_anything'`
|
|
27
|
+
|
|
28
|
+
**Solutions**:
|
|
29
|
+
```bash
|
|
30
|
+
# Install from GitHub
|
|
31
|
+
pip install git+https://github.com/facebookresearch/segment-anything.git
|
|
32
|
+
|
|
33
|
+
# Or clone and install
|
|
34
|
+
git clone https://github.com/facebookresearch/segment-anything.git
|
|
35
|
+
cd segment-anything
|
|
36
|
+
pip install -e .
|
|
37
|
+
|
|
38
|
+
# Verify installation
|
|
39
|
+
python -c "from segment_anything import sam_model_registry; print('OK')"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Missing dependencies
|
|
43
|
+
|
|
44
|
+
**Error**: `ModuleNotFoundError: No module named 'cv2'` or similar
|
|
45
|
+
|
|
46
|
+
**Solutions**:
|
|
47
|
+
```bash
|
|
48
|
+
# Install all optional dependencies
|
|
49
|
+
pip install opencv-python pycocotools matplotlib onnxruntime onnx
|
|
50
|
+
|
|
51
|
+
# For pycocotools on Windows
|
|
52
|
+
pip install pycocotools-windows
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Model Loading Issues
|
|
56
|
+
|
|
57
|
+
### Checkpoint not found
|
|
58
|
+
|
|
59
|
+
**Error**: `FileNotFoundError: checkpoint file not found`
|
|
60
|
+
|
|
61
|
+
**Solutions**:
|
|
62
|
+
```bash
|
|
63
|
+
# Download correct checkpoint
|
|
64
|
+
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
|
|
65
|
+
|
|
66
|
+
# Verify file integrity
|
|
67
|
+
md5sum sam_vit_h_4b8939.pth
|
|
68
|
+
# Expected: a7bf3b02f3ebf1267aba913ff637d9a2
|
|
69
|
+
|
|
70
|
+
# Use absolute path
|
|
71
|
+
sam = sam_model_registry["vit_h"](checkpoint="/full/path/to/sam_vit_h_4b8939.pth")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Model type mismatch
|
|
75
|
+
|
|
76
|
+
**Error**: `KeyError: 'unexpected key in state_dict'`
|
|
77
|
+
|
|
78
|
+
**Solutions**:
|
|
79
|
+
```python
|
|
80
|
+
# Ensure model type matches checkpoint
|
|
81
|
+
# vit_h checkpoint → vit_h model
|
|
82
|
+
sam = sam_model_registry["vit_h"](checkpoint="sam_vit_h_4b8939.pth")
|
|
83
|
+
|
|
84
|
+
# vit_l checkpoint → vit_l model
|
|
85
|
+
sam = sam_model_registry["vit_l"](checkpoint="sam_vit_l_0b3195.pth")
|
|
86
|
+
|
|
87
|
+
# vit_b checkpoint → vit_b model
|
|
88
|
+
sam = sam_model_registry["vit_b"](checkpoint="sam_vit_b_01ec64.pth")
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Out of memory during load
|
|
92
|
+
|
|
93
|
+
**Error**: `CUDA out of memory` during model loading
|
|
94
|
+
|
|
95
|
+
**Solutions**:
|
|
96
|
+
```python
|
|
97
|
+
# Use smaller model
|
|
98
|
+
sam = sam_model_registry["vit_b"](checkpoint="sam_vit_b_01ec64.pth")
|
|
99
|
+
|
|
100
|
+
# Load to CPU first, then move
|
|
101
|
+
sam = sam_model_registry["vit_h"](checkpoint="sam_vit_h_4b8939.pth")
|
|
102
|
+
sam.to("cpu")
|
|
103
|
+
torch.cuda.empty_cache()
|
|
104
|
+
sam.to("cuda")
|
|
105
|
+
|
|
106
|
+
# Use half precision
|
|
107
|
+
sam = sam_model_registry["vit_h"](checkpoint="sam_vit_h_4b8939.pth")
|
|
108
|
+
sam = sam.half()
|
|
109
|
+
sam.to("cuda")
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Inference Issues
|
|
113
|
+
|
|
114
|
+
### Image format errors
|
|
115
|
+
|
|
116
|
+
**Error**: `ValueError: expected input to have 3 channels`
|
|
117
|
+
|
|
118
|
+
**Solutions**:
|
|
119
|
+
```python
|
|
120
|
+
import cv2
|
|
121
|
+
|
|
122
|
+
# Ensure RGB format
|
|
123
|
+
image = cv2.imread("image.jpg")
|
|
124
|
+
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) # BGR to RGB
|
|
125
|
+
|
|
126
|
+
# Convert grayscale to RGB
|
|
127
|
+
if len(image.shape) == 2:
|
|
128
|
+
image = cv2.cvtColor(image, cv2.COLOR_GRAY2RGB)
|
|
129
|
+
|
|
130
|
+
# Handle RGBA
|
|
131
|
+
if image.shape[2] == 4:
|
|
132
|
+
image = image[:, :, :3] # Drop alpha channel
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Coordinate errors
|
|
136
|
+
|
|
137
|
+
**Error**: `IndexError: index out of bounds` or incorrect mask location
|
|
138
|
+
|
|
139
|
+
**Solutions**:
|
|
140
|
+
```python
|
|
141
|
+
# Ensure points are (x, y) not (row, col)
|
|
142
|
+
# x = column index, y = row index
|
|
143
|
+
point = np.array([[x, y]]) # Correct
|
|
144
|
+
|
|
145
|
+
# Verify coordinates are within image bounds
|
|
146
|
+
h, w = image.shape[:2]
|
|
147
|
+
assert 0 <= x < w and 0 <= y < h, "Point outside image"
|
|
148
|
+
|
|
149
|
+
# For bounding boxes: [x1, y1, x2, y2]
|
|
150
|
+
box = np.array([x1, y1, x2, y2])
|
|
151
|
+
assert x1 < x2 and y1 < y2, "Invalid box coordinates"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Empty or incorrect masks
|
|
155
|
+
|
|
156
|
+
**Problem**: Masks don't match expected object
|
|
157
|
+
|
|
158
|
+
**Solutions**:
|
|
159
|
+
```python
|
|
160
|
+
# Try multiple prompts
|
|
161
|
+
input_points = np.array([[x1, y1], [x2, y2]])
|
|
162
|
+
input_labels = np.array([1, 1]) # Multiple foreground points
|
|
163
|
+
|
|
164
|
+
# Add background points
|
|
165
|
+
input_points = np.array([[obj_x, obj_y], [bg_x, bg_y]])
|
|
166
|
+
input_labels = np.array([1, 0]) # 1=foreground, 0=background
|
|
167
|
+
|
|
168
|
+
# Use box prompt for large objects
|
|
169
|
+
box = np.array([x1, y1, x2, y2])
|
|
170
|
+
masks, scores, _ = predictor.predict(box=box, multimask_output=False)
|
|
171
|
+
|
|
172
|
+
# Combine box and point
|
|
173
|
+
masks, scores, _ = predictor.predict(
|
|
174
|
+
point_coords=np.array([[center_x, center_y]]),
|
|
175
|
+
point_labels=np.array([1]),
|
|
176
|
+
box=np.array([x1, y1, x2, y2]),
|
|
177
|
+
multimask_output=True
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
# Check scores and select best
|
|
181
|
+
print(f"Scores: {scores}")
|
|
182
|
+
best_mask = masks[np.argmax(scores)]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Slow inference
|
|
186
|
+
|
|
187
|
+
**Problem**: Prediction takes too long
|
|
188
|
+
|
|
189
|
+
**Solutions**:
|
|
190
|
+
```python
|
|
191
|
+
# Use smaller model
|
|
192
|
+
sam = sam_model_registry["vit_b"](checkpoint="sam_vit_b_01ec64.pth")
|
|
193
|
+
|
|
194
|
+
# Reuse image embeddings
|
|
195
|
+
predictor.set_image(image) # Compute once
|
|
196
|
+
for point in points:
|
|
197
|
+
masks, _, _ = predictor.predict(...) # Fast, reuses embeddings
|
|
198
|
+
|
|
199
|
+
# Reduce automatic generation points
|
|
200
|
+
mask_generator = SamAutomaticMaskGenerator(
|
|
201
|
+
model=sam,
|
|
202
|
+
points_per_side=16, # Default is 32
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
# Use ONNX for deployment
|
|
206
|
+
# Export: python scripts/export_onnx_model.py --return-single-mask
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Automatic Mask Generation Issues
|
|
210
|
+
|
|
211
|
+
### Too many masks
|
|
212
|
+
|
|
213
|
+
**Problem**: Generating thousands of overlapping masks
|
|
214
|
+
|
|
215
|
+
**Solutions**:
|
|
216
|
+
```python
|
|
217
|
+
mask_generator = SamAutomaticMaskGenerator(
|
|
218
|
+
model=sam,
|
|
219
|
+
points_per_side=16, # Reduce from 32
|
|
220
|
+
pred_iou_thresh=0.92, # Increase from 0.88
|
|
221
|
+
stability_score_thresh=0.98, # Increase from 0.95
|
|
222
|
+
box_nms_thresh=0.5, # More aggressive NMS
|
|
223
|
+
min_mask_region_area=500, # Remove small masks
|
|
224
|
+
)
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Too few masks
|
|
228
|
+
|
|
229
|
+
**Problem**: Missing objects in automatic generation
|
|
230
|
+
|
|
231
|
+
**Solutions**:
|
|
232
|
+
```python
|
|
233
|
+
mask_generator = SamAutomaticMaskGenerator(
|
|
234
|
+
model=sam,
|
|
235
|
+
points_per_side=64, # Increase density
|
|
236
|
+
pred_iou_thresh=0.80, # Lower threshold
|
|
237
|
+
stability_score_thresh=0.85, # Lower threshold
|
|
238
|
+
crop_n_layers=2, # Add multi-scale
|
|
239
|
+
min_mask_region_area=0, # Keep all masks
|
|
240
|
+
)
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Small objects missed
|
|
244
|
+
|
|
245
|
+
**Problem**: Automatic generation misses small objects
|
|
246
|
+
|
|
247
|
+
**Solutions**:
|
|
248
|
+
```python
|
|
249
|
+
# Use crop layers for multi-scale detection
|
|
250
|
+
mask_generator = SamAutomaticMaskGenerator(
|
|
251
|
+
model=sam,
|
|
252
|
+
crop_n_layers=2,
|
|
253
|
+
crop_n_points_downscale_factor=1, # Don't reduce points in crops
|
|
254
|
+
min_mask_region_area=10, # Very small minimum
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
# Or process image patches
|
|
258
|
+
def segment_with_patches(image, patch_size=512, overlap=64):
|
|
259
|
+
h, w = image.shape[:2]
|
|
260
|
+
all_masks = []
|
|
261
|
+
|
|
262
|
+
for y in range(0, h, patch_size - overlap):
|
|
263
|
+
for x in range(0, w, patch_size - overlap):
|
|
264
|
+
patch = image[y:y+patch_size, x:x+patch_size]
|
|
265
|
+
masks = mask_generator.generate(patch)
|
|
266
|
+
|
|
267
|
+
# Offset masks to original coordinates
|
|
268
|
+
for m in masks:
|
|
269
|
+
m['bbox'][0] += x
|
|
270
|
+
m['bbox'][1] += y
|
|
271
|
+
# Offset segmentation mask too
|
|
272
|
+
|
|
273
|
+
all_masks.extend(masks)
|
|
274
|
+
|
|
275
|
+
return all_masks
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Memory Issues
|
|
279
|
+
|
|
280
|
+
### CUDA out of memory
|
|
281
|
+
|
|
282
|
+
**Error**: `torch.cuda.OutOfMemoryError: CUDA out of memory`
|
|
283
|
+
|
|
284
|
+
**Solutions**:
|
|
285
|
+
```python
|
|
286
|
+
# Use smaller model
|
|
287
|
+
sam = sam_model_registry["vit_b"](checkpoint="sam_vit_b_01ec64.pth")
|
|
288
|
+
|
|
289
|
+
# Clear cache between images
|
|
290
|
+
torch.cuda.empty_cache()
|
|
291
|
+
|
|
292
|
+
# Process images sequentially, not batched
|
|
293
|
+
for image in images:
|
|
294
|
+
predictor.set_image(image)
|
|
295
|
+
masks, _, _ = predictor.predict(...)
|
|
296
|
+
torch.cuda.empty_cache()
|
|
297
|
+
|
|
298
|
+
# Reduce image size
|
|
299
|
+
max_size = 1024
|
|
300
|
+
h, w = image.shape[:2]
|
|
301
|
+
if max(h, w) > max_size:
|
|
302
|
+
scale = max_size / max(h, w)
|
|
303
|
+
image = cv2.resize(image, (int(w*scale), int(h*scale)))
|
|
304
|
+
|
|
305
|
+
# Use CPU for large batch processing
|
|
306
|
+
sam.to("cpu")
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### RAM out of memory
|
|
310
|
+
|
|
311
|
+
**Problem**: System runs out of RAM
|
|
312
|
+
|
|
313
|
+
**Solutions**:
|
|
314
|
+
```python
|
|
315
|
+
# Process images one at a time
|
|
316
|
+
for img_path in image_paths:
|
|
317
|
+
image = cv2.imread(img_path)
|
|
318
|
+
masks = process_image(image)
|
|
319
|
+
save_results(masks)
|
|
320
|
+
del image, masks
|
|
321
|
+
gc.collect()
|
|
322
|
+
|
|
323
|
+
# Use generators instead of lists
|
|
324
|
+
def generate_masks_lazy(image_paths):
|
|
325
|
+
for path in image_paths:
|
|
326
|
+
image = cv2.imread(path)
|
|
327
|
+
masks = mask_generator.generate(image)
|
|
328
|
+
yield path, masks
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
## ONNX Export Issues
|
|
332
|
+
|
|
333
|
+
### Export fails
|
|
334
|
+
|
|
335
|
+
**Error**: Various export errors
|
|
336
|
+
|
|
337
|
+
**Solutions**:
|
|
338
|
+
```bash
|
|
339
|
+
# Install correct ONNX version
|
|
340
|
+
pip install onnx==1.14.0 onnxruntime==1.15.0
|
|
341
|
+
|
|
342
|
+
# Use correct opset version
|
|
343
|
+
python scripts/export_onnx_model.py \
|
|
344
|
+
--checkpoint sam_vit_h_4b8939.pth \
|
|
345
|
+
--model-type vit_h \
|
|
346
|
+
--output sam.onnx \
|
|
347
|
+
--opset 17
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### ONNX runtime errors
|
|
351
|
+
|
|
352
|
+
**Error**: `ONNXRuntimeError` during inference
|
|
353
|
+
|
|
354
|
+
**Solutions**:
|
|
355
|
+
```python
|
|
356
|
+
import onnxruntime
|
|
357
|
+
|
|
358
|
+
# Check available providers
|
|
359
|
+
print(onnxruntime.get_available_providers())
|
|
360
|
+
|
|
361
|
+
# Use CPU provider if GPU fails
|
|
362
|
+
session = onnxruntime.InferenceSession(
|
|
363
|
+
"sam.onnx",
|
|
364
|
+
providers=['CPUExecutionProvider']
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
# Verify input shapes
|
|
368
|
+
for input in session.get_inputs():
|
|
369
|
+
print(f"{input.name}: {input.shape}")
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
## HuggingFace Integration Issues
|
|
373
|
+
|
|
374
|
+
### Processor errors
|
|
375
|
+
|
|
376
|
+
**Error**: Issues with SamProcessor
|
|
377
|
+
|
|
378
|
+
**Solutions**:
|
|
379
|
+
```python
|
|
380
|
+
from transformers import SamModel, SamProcessor
|
|
381
|
+
|
|
382
|
+
# Use matching processor and model
|
|
383
|
+
model = SamModel.from_pretrained("facebook/sam-vit-huge")
|
|
384
|
+
processor = SamProcessor.from_pretrained("facebook/sam-vit-huge")
|
|
385
|
+
|
|
386
|
+
# Ensure input format
|
|
387
|
+
input_points = [[[x, y]]] # Nested list for batch dimension
|
|
388
|
+
inputs = processor(image, input_points=input_points, return_tensors="pt")
|
|
389
|
+
|
|
390
|
+
# Post-process correctly
|
|
391
|
+
masks = processor.image_processor.post_process_masks(
|
|
392
|
+
outputs.pred_masks.cpu(),
|
|
393
|
+
inputs["original_sizes"].cpu(),
|
|
394
|
+
inputs["reshaped_input_sizes"].cpu()
|
|
395
|
+
)
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
## Quality Issues
|
|
399
|
+
|
|
400
|
+
### Jagged mask edges
|
|
401
|
+
|
|
402
|
+
**Problem**: Masks have rough, pixelated edges
|
|
403
|
+
|
|
404
|
+
**Solutions**:
|
|
405
|
+
```python
|
|
406
|
+
import cv2
|
|
407
|
+
from scipy import ndimage
|
|
408
|
+
|
|
409
|
+
def smooth_mask(mask, sigma=2):
|
|
410
|
+
"""Smooth mask edges."""
|
|
411
|
+
# Gaussian blur
|
|
412
|
+
smooth = ndimage.gaussian_filter(mask.astype(float), sigma=sigma)
|
|
413
|
+
return smooth > 0.5
|
|
414
|
+
|
|
415
|
+
def refine_edges(mask, kernel_size=5):
|
|
416
|
+
"""Refine mask edges with morphological operations."""
|
|
417
|
+
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (kernel_size, kernel_size))
|
|
418
|
+
# Close small gaps
|
|
419
|
+
closed = cv2.morphologyEx(mask.astype(np.uint8), cv2.MORPH_CLOSE, kernel)
|
|
420
|
+
# Open to remove noise
|
|
421
|
+
opened = cv2.morphologyEx(closed, cv2.MORPH_OPEN, kernel)
|
|
422
|
+
return opened.astype(bool)
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Incomplete segmentation
|
|
426
|
+
|
|
427
|
+
**Problem**: Mask doesn't cover entire object
|
|
428
|
+
|
|
429
|
+
**Solutions**:
|
|
430
|
+
```python
|
|
431
|
+
# Add multiple points
|
|
432
|
+
input_points = np.array([
|
|
433
|
+
[obj_center_x, obj_center_y],
|
|
434
|
+
[obj_left_x, obj_center_y],
|
|
435
|
+
[obj_right_x, obj_center_y],
|
|
436
|
+
[obj_center_x, obj_top_y],
|
|
437
|
+
[obj_center_x, obj_bottom_y]
|
|
438
|
+
])
|
|
439
|
+
input_labels = np.array([1, 1, 1, 1, 1])
|
|
440
|
+
|
|
441
|
+
# Use bounding box
|
|
442
|
+
masks, _, _ = predictor.predict(
|
|
443
|
+
box=np.array([x1, y1, x2, y2]),
|
|
444
|
+
multimask_output=False
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
# Iterative refinement
|
|
448
|
+
mask_input = None
|
|
449
|
+
for point in points:
|
|
450
|
+
masks, scores, logits = predictor.predict(
|
|
451
|
+
point_coords=point.reshape(1, 2),
|
|
452
|
+
point_labels=np.array([1]),
|
|
453
|
+
mask_input=mask_input,
|
|
454
|
+
multimask_output=False
|
|
455
|
+
)
|
|
456
|
+
mask_input = logits
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
## Common Error Messages
|
|
460
|
+
|
|
461
|
+
| Error | Cause | Solution |
|
|
462
|
+
|-------|-------|----------|
|
|
463
|
+
| `CUDA out of memory` | GPU memory full | Use smaller model, clear cache |
|
|
464
|
+
| `expected 3 channels` | Wrong image format | Convert to RGB |
|
|
465
|
+
| `index out of bounds` | Invalid coordinates | Check point/box bounds |
|
|
466
|
+
| `checkpoint not found` | Wrong path | Use absolute path |
|
|
467
|
+
| `unexpected key` | Model/checkpoint mismatch | Match model type |
|
|
468
|
+
| `invalid box coordinates` | x1 > x2 or y1 > y2 | Fix box format |
|
|
469
|
+
|
|
470
|
+
## Getting Help
|
|
471
|
+
|
|
472
|
+
1. **GitHub Issues**: https://github.com/facebookresearch/segment-anything/issues
|
|
473
|
+
2. **HuggingFace Forums**: https://discuss.huggingface.co
|
|
474
|
+
3. **Paper**: https://arxiv.org/abs/2304.02643
|
|
475
|
+
|
|
476
|
+
### Reporting Issues
|
|
477
|
+
|
|
478
|
+
Include:
|
|
479
|
+
- Python version
|
|
480
|
+
- PyTorch version: `python -c "import torch; print(torch.__version__)"`
|
|
481
|
+
- CUDA version: `python -c "import torch; print(torch.version.cuda)"`
|
|
482
|
+
- SAM model type (vit_b/l/h)
|
|
483
|
+
- Full error traceback
|
|
484
|
+
- Minimal reproducible code
|