谢翊凡
谢翊凡
### Context We are currently analyzing historical GitHub issues to identify potential compatibility regressions in open-source projects. During this process, we noticed a usage pattern in `MockingBird` that corresponds to...
### Context We are currently analyzing historical GitHub issues to identify potential compatibility regressions in open-source projects. During this process, we noticed a usage pattern in `OpenSfM` that corresponds to...
### Summary `torch.cuda.amp.GradScaler` has been deprecated since torch 2.3 and `torch.cuda.amp` is scheduled for removal ("will be removed in a future release"). Both `train.py` and `segment/train.py` construct it on the...
### Summary `hy3dgen/texgen/hunyuanpaint/pipeline.py:598` calls `torch.range`, which is deprecated and emits a `UserWarning` on every call ("torch.range is deprecated and will be removed in a future release because its behavior is...
In `contrib/rlhflow/reward_modeling.py` line 44, `AutoModelForSequenceClassification.from_pretrained` is called with `torch_dtype=torch.bfloat16`: ```python model = AutoModelForSequenceClassification.from_pretrained( model_args.model_name_or_path, num_labels=1, torch_dtype=torch.bfloat16 ) ``` The `torch_dtype` keyword argument was deprecated in transformers 4.56 (PR #39782) and...
## Summary [whisperspeech/train.py:183](https://github.com/WhisperSpeech/WhisperSpeech/blob/main/whisperspeech/train.py#L183): ```python scaler = torch.cuda.amp.GradScaler(enabled=half) ``` used at lines 240/274/278/279 (`scale` / `unscale_` / `step` / `update`). This is the repo's only training entry point. `torch.cuda.amp.GradScaler` has been...
## Summary Seven uses of the deprecated `torch.cuda.amp.autocast` in the core `flagai/` package (not examples): 1. [flagai/model/predictor/predictor.py:21](https://github.com/FlagAI-Open/FlagAI/blob/master/flagai/model/predictor/predictor.py#L21) — import, used at [:459](https://github.com/FlagAI-Open/FlagAI/blob/master/flagai/model/predictor/predictor.py#L459) (`with autocast():`) — this is the public `Predictor`...
## Summary Four uses of the deprecated `torch.cuda.amp.autocast` in the core `docta/` package: 1. [docta/apis/train.py:48](https://github.com/Docta-ai/docta/blob/main/docta/apis/train.py#L48) — test loop: ```python with torch.cuda.amp.autocast(): ``` 2. [docta/apis/train.py:75](https://github.com/Docta-ai/docta/blob/main/docta/apis/train.py#L75) — `train_epoch`: ```python with torch.cuda.amp.autocast(): ```...
## Summary Four uses of the deprecated `torch.cuda.amp.autocast` in the repo's own code, all on the main inference/tracking path: 1. [seg_track_anything.py:141](https://github.com/z-x-yang/Segment-and-Track-Anything/blob/main/seg_track_anything.py#L141) and [:273](https://github.com/z-x-yang/Segment-and-Track-Anything/blob/main/seg_track_anything.py#L273) — core tracking module: ```python amp_ctx =...
### Summary `train_svi.py:433` instantiates `torchvision.transforms.v2.ToTensor()`, which is a deprecated alias: constructing it emits a `UserWarning` on every instantiation: ```python self.frame_process = v2.Compose([ # v2.CenterCrop(size=(height, width)), v2.Resize(size=(height, width), antialias=True), v2.ToTensor(), #...