Troubleshooting

Start with the active environment

python -m pip show hermes-benchmark
python -m hermes_benchmark.cli --help

Confirm that the interpreter and hermes-data executable belong to the intended virtual environment. An installed wheel does not update when checkout files are edited. Rebuild/reinstall the wheel or use an editable installation as described in Installation.

Configuration or path errors

Paths are relative to the working directory. Check the dump file, language, output directory, enabled tasks, and service dependencies. Top-level/typed unknown fields fail validation; task-option dictionaries require additional care because unknown keys are not uniformly rejected.

For reranking, hard_negative_count must equal candidate_count - 1. For ontology edits, mapping keys and the priority permutation must match the label vocabulary. Classification needs at least four labels and an LLM service.

Not enough candidates

Run info and pilot, inspect corpus filters, and check the requested targets. Observed/proxy capacity is not a promise of enough semantically acceptable final records. Coherence+ordering and membership+next-paragraph each consume a shared eligible article pool within that pair. QA filters and classification category requirements can reduce usable capacity further.

Increase source limits or lower targets deliberately. Do not reduce quality checks merely to obtain a desired count without reporting the methodological change.

Embedding model unavailable

Sentence Transformers is included in the default installation from version 0.0.6; update older installations with python -m pip install --upgrade hermes-benchmark. If local_files_only: true, populate the model cache or point model at a local model directory. Otherwise allow the configured model to download. A constructor error such as an unexpected keyword may indicate an incompatible installed loader/dependency combination; inspect actual versions and the loaded Hermes path before changing dependencies.

Gemini or Vertex authentication

Gemini keys can come from inline api_key, api_key_file, or environment variables in that order. A configured empty/missing key file is an error. Vertex uses the SDK's Google Cloud authentication path, project, and location. Check model availability, API version, permissions, and quota for your account. Do not paste real credentials into issue reports or shared examples.

Wikidata throttling or offline-cache failure

Requests are spaced and retried; rate limits can cause deliberate waits. request_delay_seconds, batch sizes, retries, and timeout are configurable. Repeat the same command after a failed request to reuse completed lookups. offline: true requires cached title and ontology results for the active mapping. A newly configured mapping does not reuse another mapping's label decisions.

QA conflicting answers or replacement failure

quality_report.json records detected conflicts, retired IDs, replacement IDs, and counts. Conflicting groups are replaced together. Hybrid replacements need an independent answer check; a custom question provider must implement validate_answers for this path.

If verified replacements cannot fill the target within the configured conflict_replacement_rounds, generation raises an error and preserves the existing published task directory. Inspect candidate quality, model responses, and the target before increasing the limit. validate detecting zero conflicting annotations does not establish that every question has only one semantically valid answer.

Validation fails after individual stages

Individual task generation can change a task manifest without refreshing an old benchmark_manifest.json. Run full generate with the intended configuration, then validate. Changed configuration, source dump identity, or artifact hashes can invalidate a previously recorded run.

Do not repair integrity failures by changing recorded hashes alone. Investigate the underlying data and regenerate when appropriate. Hash consistency alone cannot validate a manual annotation edit.

SSL warnings

An SSL compatibility warning and a generation exception are different events. Inspect the actual exception and use a maintained Python build/dependency combination. Suppressing a warning does not repair a failing model constructor, credential, or API request.

Exit codes and progress

Exit code Meaning
0 Successful command; validation succeeded when requested
1 Processing/generation failure or invalid artifacts
2 CLI argument/configuration error

Use --json for machine-readable reports and suppressed progress display. SDK or runtime warnings can still appear on stderr. When reporting a problem, include the command, sanitized config, package/dependency versions, and relevant manifest or validation issues.