AnswerDotAI / AnswerDotAI/RAGatouille

Improve warning message

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4k
Forks
276
PR merge metrics
No merged PRs in 30d

Description

There is a "warnings.warn(" line being attached to a lot of warning messages. Could this be removed?

```
/home/wsl/miniconda3/envs/RAGatouille/lib/python3.11/site-packages/torch/cuda/amp/grad_scaler.py:125: UserWarning: torch.cuda.amp.GradScaler is enabled, but CUDA is not available. Disabling.
warnings.warn(

```

or

```
/home/wsl/miniconda3/envs/RAGatouille/lib/python3.11/site-packages/torch/amp/autocast_mode.py:250: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
warnings.warn(

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported warnings and trace the RAGatouille call sites that reach torch/cuda/amp/grad_scaler.py and torch/amp/autocast_mode.py. Determine whether the messages originate in project code or the PyTorch dependency; done means the unwanted warnings are no longer emitted without changing CUDA behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.