Skip to content

Torch not compiled with CUDA enabled #11

@sumitsharansatsangi

Description

@sumitsharansatsangi

I am running it on mac with following specification

Chipset Model: Apple M2
Type: GPU 
Bus: Built-In 
Total Number of Cores: 8 
Vendor: Apple (0x106b) 
Metal Support: Metal 4

My output

When using '--method hf', ensure that the batch size is set correctly.  We will default to batch size of 1.
Chandra CLI - Starting OCR processing
Input: input.pdf
Output: output
Method: hf

Loading model with method 'hf'...
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:17<00:00,  4.48s/it]
Some parameters are on the meta device because they were offloaded to the disk.
Model loaded successfully.

Found 1 file(s) to process.

[1/1] Processing: input.pdf
  Loaded 1 page(s)
  Processing pages 1-1...
  Error processing input.pdf: Torch not compiled with CUDA enabled

Processing complete. Results saved to: output

My command was

chandra  input.pdf ./output --method hf  --page-range 1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions