Skip to main content

Overview

The community module lets you share anonymized abliteration results as structured JSON files that can be submitted to the OBLITERATUS community results repository. Unlike telemetry (which is automatic and remote), contributions are always explicit and local-only until you choose to share them.
Key differences from telemetry:
  • Includes the public model name (for aggregation by model)
  • Saved locally — nothing is sent remotely
  • Filename is human-readable (llama2-7b_advanced_20260227_143052.json)
  • Includes a config fingerprint for deduplication
  • Always explicit opt-in — never automatic

save_contribution()

Save a contribution record from a completed pipeline run. The record wraps the full OBLITERATUS telemetry schema in a community envelope.
AbliterationPipeline
required
A completed AbliterationPipeline (or InformedAbliterationPipeline) instance after run() or run_informed() has returned.
str
required
The public HuggingFace model ID used in the run (e.g., "meta-llama/Llama-2-7b-chat-hf"). Used as the aggregation key — must be the public ID, not a local path.
str
default:""
Free-text notes about the run: hardware, dataset, observations, etc.
str | Path
default:"community_results"
Directory to write the contribution JSON file. Created automatically if it does not exist.
InformedPipelineReport | None
default:"None"
Pass the report from run_informed() to include analysis insights (alignment detection, cone geometry, Ouroboros passes) in the contribution.
Returns Path — absolute path to the saved JSON file. Filename format: {model_short_name}_{method}_{YYYYMMDD_HHMMSS}.json

load_contributions()

Load all contribution records from a directory.
str | Path
default:"community_results"
Directory containing contribution JSON files. Non-existent directory returns an empty list.
Returns list[dict] — parsed contribution records sorted by timestamp. Each record is a dict with the structure described in Contribution Schema below. Invalid files are skipped with a warning.

aggregate_results()

Aggregate contribution records into per-model, per-method summary statistics.
list[dict]
required
List of contribution records, e.g., from load_contributions().
Returns nested dict:
Metrics included: refusal_rate, perplexity, coherence.

Contribution Schema

Each contribution JSON file follows this schema:
int
Schema version. Currently 1.
str
ISO 8601 UTC timestamp of the run.
str
Public HuggingFace model ID.
str
8-character SHA-256 hash of the method config for deduplication.
str
Free-text notes from the contributor.
dict
Full pipeline telemetry including method config, architecture info, quality metrics, stage durations, and strong layers.

Code Examples