Skip to main content

Blazing-fast app review clustering: 100k reviews in <20s on GPU

Project description

roast-fast

Blazing-fast app review clustering. 1 lakh reviews in under 20 seconds.

Built on ONNX + FAISS. Auto-detects GPU. Falls back to CPU.

Install

pip install roast-fast          # CPU
pip install "roast-fast[gpu]"   # GPU (CUDA)

Usage

from roast_fast import process_reviews

result = process_reviews("reviews.csv")

print(result["stats"])
# {total_reviews: 100000, total_time_s: 17.9, throughput_rps: 5580, ...}

for cluster in result["clusters"][:5]:
    print(cluster["size"], cluster["sample_reviews"][0])

Benchmark (A100-SXM4 MIG)

Reviews Time Throughput
1,000 0.8s 1,250 rev/s
10,000 2.1s 4,762 rev/s
100,000 17.9s 5,580 rev/s

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

roast_fast-0.1.0-py3-none-any.whl (15.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roast_fast-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for roast_fast-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de43b9aa02a5d68f83f1e4a8c0c6699e4d9cafe69964107bc643f00edef3e33b
MD5 e00f9314eed70c5925543c89b7696dc8
BLAKE2b-256 319decfdd27fd19615b962a2a60372c9a93b5cac01f6bf9a76c192ede82bea2c

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