http://xxx:8090/prometheus/api/v1/query_range?query=sum by (instanceId,instancePhase,project_id)(sum_over_time(porta_downstream_rq_5xx{instanceId="ltv-verda-porta",instancePhase="alpha",project_id="1cd9bc91b48e4d0b8c34cd6932f221a0",product_id=~".*",api_id=~".*", api_key_id=~".*"}[59s]))&start=1603436397&end=1603436657&step=60s
Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model
While fine-tuning the Qwen model, I encountered an error in the finetune.py script: ImportError : cannot import name 'deepspeed' from 'transformers.deepspeed' After some investigation, I discovered the issue stems from a recent update in the Transformers library. The transformers.deepspeed module has been deprecated and replaced by transformers.integrations . To fix this, you need to update the import statement in your script. The Fix Replace this: from transformers.deepspeed import deepspeed With this: from transformers.integrations import deepspeed This small change resolved the error, allowing the fine-tuning process to proceed smoothly. Additional Resources For more details, refer to the discussion in the official Transformers GitHub repository: Issue #34582 Remember to keep your library versions up-to-date to avoid similar issues in the future!
Comments
Post a Comment