ablate 0 0 0

cowWhySo/pentest-redteam-steering

published by @cowWhySo

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
2.8K
Last 30 days
103
Likes
17
Size
1.3 MB
Created on HF
2024-05-31
Age
2 years ago

Description

These prompts are all reject by Llama 3 for being "harmful" related to security and pentesting.

They can be used for steering models using: https://github.com/FailSpy/abliterator

Used in code with:

def custom_get_harmful_instructions() -> Tuple[List[str], List[str]]:

hf_path = 'cowWhySo/pentest-redteam-steering' # Replace with the path to your desired dataset

dataset = load_dataset(hf_path, encoding='utf-8') # Specify the encoding

# Print the keys of the first example in the… See the full description on the dataset page: https://huggingface.co/datasets/cowWhySo/pentest-redteam-steering.

Tags

license:unlicensesize_categories:1K<n<10Kformat:csvmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:us

README current version from Hugging Face


license: unlicense

These prompts are all reject by Llama 3 for being "harmful" related to security and pentesting.

They can be used for steering models using: https://github.com/FailSpy/abliterator

Used in code with:

def custom_get_harmful_instructions() -> Tuple[List[str], List[str]]:
    hf_path = 'cowWhySo/pentest-redteam-steering'  # Replace with the path to your desired dataset
    dataset = load_dataset(hf_path, encoding='utf-8')  # Specify the encoding
    # Print the keys of the first example in the 'train' split
    print(dataset['train'][0].keys())
    instructions = [i['goal'] for i in dataset['train']]  # Use the 'goal' key

    train, test = train_test_split(instructions, test_size=0.2, random_state=42)
    return train, test

_, harmful_inst_test = custom_get_harmful_instructions()

# Save the harmful instructions to a file
with open("harmful_instructions.json", "w") as f:
    json.dump(harmful_inst_test[:10], f)

Used to generate models:

https://huggingface.co/cowWhySo/Llama-3-8B-Instruct-Cybersecurity

https://huggingface.co/cowWhySo/Phi-3-mini-4k-instruct-Cybersecurity

README history 5 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2024-06-02Update README.md3bb500b1.1 KB
    Loading...
  2. 2024-06-02Update README.mddaaf6971.1 KB
    Loading...
  3. 2024-06-01utf80bac9f130 B
    Loading...
  4. 2024-06-01Upload pentesting-redteam-steering.csvda0938030 B
    Loading...
  5. 2024-06-01initial commit9eaafa930 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2024-06-03[bot] Conversion to Parquetclosed1 💬#1
    Loading...

Related datasets same stage · ablate

Read further

Metadata

License
unlicense

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("cowWhySo/pentest-redteam-steering")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="cowWhySo/pentest-redteam-steering", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/cowWhySo/pentest-redteam-steering
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration