Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrseanryan/gpt-summarizer

Summarize text using ChatGPT or a local LLM, with support for multiple large text files, PDF files and translation.
https://github.com/mrseanryan/gpt-summarizer

chatgpt nlp pdf pdf-summarizer summarization

Last synced: 7 days ago
JSON representation

Summarize text using ChatGPT or a local LLM, with support for multiple large text files, PDF files and translation.

Awesome Lists containing this project

README

        

### Using GPU with the local model

If you have an NVIDIA graphics card, then you can run part or all of the model (depending on the card's RAM) on the GPU,
which has much higher level of parallelism than the typical CPU.

Required:

- latest NVIDIA graphic driver
- up to date version of CUDA

#### Tip: if you get errors when running the model, like this:

```
>> Cuda error: no kernel image is available for execution on the device
```

Then recommend to build ctransformers locally.

This is actually quite simple:

```
pip3 uninstall ctransformers
pip3 install ctransformers --no-binary ctransformers # use --no-binary to force a local build. This ensures that the local version of CUDA and NVIDIA graphics driver will be used.
```

You can tweak the settings in `config.py`.

# More details

## local via ctransformers
- [ctransformers](https://github.com/marella/ctransformers).

## local via pytorch
- [pytorch](https://pytorch.org/get-started/locally/)
- [Building pytorch from scratch](https://github.com/pytorch/pytorch#from-source)