Skip to main content

TextSlinger text prediction toolkit.

Project description

Python library for making text predictions using a language model.

**** Setting up a Python environment **** These instructions are the same as those in the classify-aac which actually does training of models. But the same environment should also work for evaluation using the models (though you may only need a subset of the packages). This was tested on cheetah on 9/14/24.

If you don't have anaconda installed in your user account you'll first need to do that. See: https://docs.anaconda.com/anaconda/install/linux/

% conda create -n aacllm python=3.10 % conda activate aacllm % conda install pytorch torchvision torchaudio pytorch-cuda cuda mpi4py -c pytorch -c nvidia % pip install 'git+https://github.com/potamides/uniformers.git#egg=uniformers' % pip install --upgrade transformers % pip install kenlm==0.1 --global-option="--max_order=12" % pip install rbloom bitsandbytes requests nlpaug ipywidgets psutil datasets sentencepiece protobuf evaluate scikit-learn deepspeed accelerate

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

textslinger-0.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

textslinger-0.1.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for textslinger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 853bfefaed82e360b9e9d8caecea851c0e6fd8cd70b4759b8cdde96cb4b62c4a
MD5 3a21afa14357b72aa1f8b7199e78959a
BLAKE2b-256 e4b6aa77672ea4d2dce65a8f90aeb72b3fbb0b35c1c99e1522c692be5fe9b95a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for textslinger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d83160c362b51ebdea3c8e32556e97e53257a9c93e0d44280340d15cb702bb4
MD5 6bd97f2a95b8595e4fff38f8d54aa90c
BLAKE2b-256 639a57fb2bcfb21602582ef873da06e3194cea85dc1d5b0f83d60cd1d494d701

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