Skip to main content

A library to test prompt injections on large language models.

Project description

Installation

1. Install PyTorch

First, you must install PyTorch separately. Please visit the official PyTorch website and select the correct options for your system (OS, package manager, compute platform like CUDA or CPU).

For example, a common command is:

pip3 install torch 

2. Optional: Install requirements for speedup You may also wish to install accelerate, triton >=3.4 and kernels to speed up inference if using with transformers models to generate. this package mainly relies on transformers for tokenizing, not inference, so these are not direct dependencies.

3. Install Spaim Once PyTorch is installed, you can install spaim using pip:

pip install spaim

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spaim-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spaim-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file spaim-0.1.0.tar.gz.

File metadata

  • Download URL: spaim-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for spaim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9a8d2adaddd2ea99cf439fe069fe9c27d0093ba65c6a8d43926367871ea27cc
MD5 1c5363e3340070f34e0fd55e88ac3f2b
BLAKE2b-256 50617dc898ffd2c2a80cf8fecad43f3f35b6102c323162e92facc70fa56f7a6c

See more details on using hashes here.

File details

Details for the file spaim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spaim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for spaim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1068ebd1a3d44d23bfad6bd9f8e005b60656036ccd3f9e815994ef27545b43e
MD5 0555583684103ce998f5a035341a94f9
BLAKE2b-256 8b694dcfaf884d9bc35adf521b0b0541be40592ab468008f1b35288a675edc5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page