Skip to content

tryolabs/nupic-simple-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NuPIC Simple Benchmark

This repository contains the instructions and code used to benchmark NuPIC Inference Server in this blogpost.

Preparation

You need to have your Inference Server up and running in localhost:8000, and have the nupic.client package installed (see the blogpost for more details). Now you need to install the required dependencies with the following command:

pip install transformers[torch]

Download dataset

Run the following commands to download and prepare the data:

pip install kaggle
kaggle datasets download -d sbhatti/financial-sentiment-analysis
unzip financial-sentiment-analysis.zip

Run

Now you can run each of the experiments as:

python run_nupic.py
python run_cpu.py
python run_gpu.py

Each experiment will print inference time used to process the 5842 sentences.

Contributions are welcome. Feel free to open any issues you might find when executing the code.

About

Simple benchmark for NuPIC Inference Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages