Metadata-Version: 2.1
Name: hf-model-s-cpu
Version: 0.1.0
Summary: model-s served from hf spaces using torch+cpu
Home-page: https://github.com/ffreemt/model-s
License: MIT
Author: ffreemt
Requires-Python: >=3.8.3,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Pillow (>=9.1.0,<10.0.0)
Requires-Dist: alive-progress (>=2.4.1,<3.0.0)
Requires-Dist: huggingface-hub (>=0.5.1,<0.6.0)
Requires-Dist: install (>=1.3.5,<2.0.0)
Requires-Dist: joblib (>=1.1.0,<2.0.0)
Requires-Dist: logzero (>=1.7.0,<2.0.0)
Requires-Dist: nltk (>=3.7,<4.0)
Requires-Dist: numpy (>=1.22.3,<2.0.0)
Requires-Dist: scikit-learn (>=1.0.2,<2.0.0)
Requires-Dist: sentencepiece (>=0.1.96,<0.2.0)
Requires-Dist: tqdm (>=4.64.0,<5.0.0)
Requires-Dist: transformers (>=4.18.0,<5.0.0)
Project-URL: Repository, https://github.com/ffreemt/model-s
Description-Content-Type: text/markdown

# model-s
[![pytest](https://github.com/ffreemt/model-s-cpu/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/model-s-cpu/actions)[![python](https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue)](https://www.python.org/downloads/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/hf_model_s_cpu.svg)](https://badge.fury.io/py/hf_model_s_cpu)

model-s served from hf spaces for torch cpu

## Install it

```shell
pip install git+https://github.com/ffreemt/model-s-cpu
# poetry add git+https://github.com/ffreemt/model-s-cpu
# git clone https://github.com/ffreemt/model-s-cpu && cd model-s-cpu
```

## Install `sentence-transformers`
Simply
```bash
pip install sentence-transformers
```
Or
```bash
pip install --no-cache-dir torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html  # adjust according to os/python
pip install transformers tqdm numpy scikit-learn nltk sentencepiece pillow
pip install --no-deps sentence-transformers
```

## Use it
```python
from hf_model_s_cpu import model_s

```

