-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Validated on an EC2 GPU instance to work. - Closes #8 Signed-off-by: Brent Salisbury <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,24 @@ curl -X 'POST' \ | |
} | ||
}' | ||
``` | ||
|
||
### Cuda GPU Support | ||
|
||
For GPU support try the following: | ||
|
||
```sh | ||
# Create a virtual env | ||
python3 -m venv venv | ||
|
||
# Activate the venv | ||
source venv/bin/active | ||
|
||
# Install torch with the special index | ||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 | ||
|
||
# Install the package | ||
pip install -e . | ||
|
||
# Run the server | ||
poetry run uvicorn docling_serve.app:app --reload | ||
``` | ||
Check failure on line 56 in README.md GitHub Actions / markdown-lintFiles should end with a single newline character
|