Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIx Deprecation Warnings in AutoCast API #107

Open
fabianlim opened this issue Nov 8, 2024 · 0 comments
Open

FIx Deprecation Warnings in AutoCast API #107

fabianlim opened this issue Nov 8, 2024 · 0 comments
Labels
future Will be affected in future versions (e.g., deprecation) help wanted Extra attention is needed

Comments

@fabianlim
Copy link
Contributor

There are a couple of autocast deprecation warnings that should be eventually addressed

/workspace/fms2/run-benches/lib/python3.10/site-packages/torch/utils/checkpoint.py:295: FutureWarning: `torch.cpu.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cpu', args...)` instead.
  with torch.enable_grad(), device_autocast_ctx, torch.cpu.amp.autocast(**ctx.cpu_autocast_kwargs):  # type: ignore[attr-defined]
/data/flim/fms-acceleration/plugins/fused-ops-and-kernels/src/fms_acceleration_foak/fused_ops/unsloth_lora/gptq/fast_lora.py:811: FutureWarning: `torch.cuda.amp.custom_bwd(args...)` is deprecated. Please use `torch.amp.custom_bwd(args..., device_type='cuda')` instead.
  def backward(ctx, dY: torch.Tensor):
/data/flim/fms-acceleration/plugins/fused-ops-and-kernels/src/fms_acceleration_foak/fused_ops/unsloth_lora/bnb/fast_lora.py:298: FutureWarning: `torch.cuda.amp.custom_bwd(args...)` is deprecated. Please use `torch.amp.custom_bwd(args..., device_type='cuda')` instead.
  def backward(ctx, dQ, dK, dV):

@fabianlim fabianlim changed the title AutoCast API FIx Deprecation Warnings in AutoCast API Nov 8, 2024
@fabianlim fabianlim added future Will be affected in future versions (e.g., deprecation) help wanted Extra attention is needed labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future Will be affected in future versions (e.g., deprecation) help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant