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!
Amazon Linux 2023 (AL2023) introduces a new node initialization process nodeadm that uses a YAML configuration schema. If you’re using self-managed node groups or an AMI with a launch template, you’ll now need to provide additional cluster metadata explicitly when creating a new node group MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="//" --// Content-Type: application/node.eks.aws --- apiVersion: node.eks.aws/v1alpha1 kind: NodeConfig spec: cluster: name: my-cluster-name-prd apiServerEndpoint: https://D59F.xyz.ap-northest-2.eks.amazonaws.com certificateAuthority: Y2VydGlmaWNhdGVBdXRob3JpdHk= cidr: 172.10.0.0/16 kubelet: config: clusterDNS: - 172.10.0.10 flags: - --node-labels=app=my-app,environment=production --// Content-Type: text/x-shellscript; charset="us-ascii" #!/bin/bash set -o errexit set -o pipefail set -o nounset # Install additional packages yum install -y htop jq iptables-services --//--
direct: Là loại exchange mà khi bạn đẩy 1 event kèm 1 routing-key thì event này sẽ được khớp chính xác với routing-key tương ứng queue fanout: Là loại exchange mà nó sẽ đẩy event vào bất kì cái queue nào đang nhận routing từ exchange đó topic: Là loại exchange mà nó sẽ đẩy event vào bất kì cái queue nào mà có routing key matched theo các quy ước ký tự (*, #) header: exchanges are similar to Topic exchanges, except instead of pattern matching on the routing key, they use the message header attributes for matching https://www.rabbitmq.com/tutorials/tutorial-five-python.html https://www.compose.com/articles/configuring-rabbitmq-exchanges-queues-and-bindings-part-1/ https://www.compose.com/articles/configuring-rabbitmq-exchanges-queues-and-bindings-part-2/
Comments
Post a Comment