Skip to content

GPU usage #5

Description

@petermr

On Macos Sequoia 15.5 , Apple M2 Max I ran:

(base) pm286macbook-2:2025_10 pm286$ extract_keywords -i txt/ -o txt/keywords/ -n 50
Total text chunks to process: 7384
First chunk preview: ![A black and blue text Description automatically
generated](media/image1.png){width="6.268055555555556in"
height="3.082638888888889in"}

®

**The Student Book**

**The Climate Academy was founded in ...

Hardware accelerator e.g. GPU is available in the environment, but no `device` argument is passed to the `Pipeline` object. Model will be on CPU.

This suggests that hardware acceleration is available if requested.

It would be useful to have this as a feature callable from CLI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions