Giter VIP home page Giter VIP logo

plexiglass's Introduction


Plexiglass

Quickstart | Installation | Documentation | Code of Conduct

PyPI version GitHub License PyPI - Downloads

Plexiglass is a toolkit for detecting and protecting against vulnerabilities in Large Language Models (LLMs).

It is a simple command line interface (CLI) tool which allows users to quickly test LLMs against adversarial attacks such as prompt injection, jailbreaking and more.

Plexiglass also allows security, bias and toxicity benchmarking of multiple LLMs by scraping latest adversarial prompts such as jailbreakchat.com and wiki_toxic. See more at modes.

Quickstart

Please follow this quickstart guide in the documentation.

Installation

The first experimental release is version 0.0.1.

To download the package from PyPi:

pip install --upgrade plexiglass

Modes

Plexiglass has two modes: llm-chat and llm-scan.

llm-chat allows you to converse with the LLM and measure predefined metrics, such as toxicity, from its responses. It currently supports the following metrics:

  • toxicity
  • pii_detection

llm-scan runs benchmarks using open-source datasets to identify and assess various vulnerabilities in the LLM.

Feature Request

To request new features, please submit an issue

Development Roadmap

  • implement adversarial prompt templates in llm-chat mode
  • security, bias and toxicity benchmarking with llm-scan mode
  • generate html report in llm-scan and llm-chat modes
  • standalone python module
  • production-ready API

Join us in #plexiglass on Discord.

Contributors

Code of Conduct

Read our Code of Conduct.

Made with contrib.rocks.

plexiglass's People

Contributors

dependabot-preview[bot] avatar enochkan avatar jkartzman avatar zhaohan-dong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

plexiglass's Issues

Cannot import detectors

I installed plexiglass-1.0.9 with

pip install plexiglass -U

Got some error when importing it

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-0e3709df6528> in <module>
----> 1 from plexiglass.adversarial import FGSM, test_robustness
      2 import torch
      3 import timm
      4 from pprint import pprint
      5 import pytorchcv as ptcv

~/.local/lib/python3.6/site-packages/plexiglass/__init__.py in <module>
----> 1 from . import detectors
      2 from . import adversarial

ImportError: cannot import name 'detectors'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.