تدريب Shadowing: PyTorch in 100 Seconds - تعلم التحدث بالإنجليزية عبر الفيديو

جارٍ التحميل...
1
PyTorch, an open-source deep learning framework used to build some of the world's most famous artificial intelligence products.
2
It was created at the Meta AI Research Lab in 2016, but is actually derived from the Lua-based Torch library that dates back to 2002.
3
Fundamentally, it's a library for programming with tensors, which are basically just multi-dimensional arrays that represent data and parameters in deep neural networks.
4
Sounds complicated, but its focus on usability will have you training machine learning models with just a few lines of Python.
5
In addition, it facilitates high-performance parallel computing on a GPU, thanks to NVIDIA's CUDA platform.
6
Developers love prototyping with it because it supports a dynamic computational graph, allowing models to be optimized at runtime.
7
It does this by constructing a directed acyclic graph consisting of functions
8
that keeps track of all the executed operations on the tensors, allowing you to change the shape, size, and operations after every iteration if needed.
9
PyTorch has been used to train models for computer vision AI like Tesla Autopilot, image generators like Stable Diffusion, and speech recognition models like OpenAI Whisper, just to name a few.
10
To get started, install PyTorch, and optionally CUDA, if you want to accelerate computing on your GPU.
11
Now import it into a Python file or notebook.
12
Like I mentioned, a tensor is similar to a multi-dimensional array.
13
Create a 2D array or matrix with Python, then use Torch to convert it into a tensor.
14
Now we can run all kinds of computations on it, like we might convert all these integers into random floating points.
15
We can also perform linear algebra by taking multiple tensors and multiplying them together.
16
What you came here to do though is build a deep neural network, like an image classifier.
17
To handle that, we can define a new class that inherits from the Neural Network Module class.
18
Inside the constructor, we can build it out layer by layer.
19
The flattened layer will take a multi-dimensional input, like an image, and convert it to one dimension.
20
From there, Sequential is used to create a container of layers that the data will flow through.
21
Each layer has multiple nodes, where each node is like its own mini statistical model.
22
As each data point flows through it, it'll try to guess the output, and gradually update a mapping of weights to determine the importance of a given variable.
23
Linear is a fully connected layer that takes the flattened 28x28 image and transforms it to an output of 512.
24
This layer is followed by a non-linear activation function.
25
When activated, it means that feature might be important and outputs the node.
26
Otherwise, it just outputs zero.
27
And finally, we finish with a fully connected layer that outputs the 10 labels the model is trying to predict.
28
With these pieces in place, the next step is to define a forward method that describes the flow of data.
29
And now instantiate the model to a GPU and pass it some input data.
30
This will automatically call its forward method for training and prediction.
31
Congratulations, you just built a neural network.
32
This has been PyTorch in 100 seconds.
33
Thanks for watching, and I will see you in the next one.

السياق والخلفية

في الفيديو، نتناول إطار العمل "بايتورتش" (PyTorch)، وهو إطار مفتوح المصدر يُستخدم في التعلم العميق لبناء بعض من أشهر منتجات الذكاء الاصطناعي في العالم. تم إنشاء "بايتورتش" في مختبر أبحاث الذكاء الاصطناعي التابع لشركة ميتا في عام 2016، لكنه مستمد من مكتبة "تورش" (Torch) التي تعتمد على لغة "لوا" (Lua) والتي تعود إلى عام 2002. الهدف الرئيسي من "بايتورتش" هو تسهيل استخدام البرمجة مع "التنسورات" (tensors) التي تعتبر مصفوفات متعددة الأبعاد تمثل البيانات والمعلمات في الشبكات العصبية العميقة. يوضح المتحدث كيف يمكن استخدام هذا الإطار لتدريب نماذج التعلم الآلي بشكل فعال وسهل.

أهم 5 عبارات للتواصل اليومي

  • إطار العمل بايتورتش: تعبير شائع يشير إلى النظام المستخدم في التعلم العميق.
  • تنسورات: تعبر عن المصفوفات متعددة الأبعاد المستخدمة في العمليات الحسابية.
  • الرسوم البيانية الحركية الديناميكية: تشير إلى الطريقة التي يتم بها تحسين النماذج أثناء التشغيل.
  • التعلم العميق: مجال فرعي من الذكاء الاصطناعي يركز على الشبكات العصبية.
  • التعلم على GPU: إشارة إلى استخدام وحدات معالجة الرسوميات لتسريع عملية التعلم.

دليل خطوة بخطوة لتقنية التظليل

لتحسين مهارات "ممارسة المحادثة الإنجليزية"، يمكنك اتباع هذه الخطوات لتطبيق طريقة التظليل في الإنجليزية على هذا الفيديو:

  1. استمع إلى الفيديو بالكامل: حاول فهم المحتوى العام والنقاط الرئيسية المطروحة.
  2. حدد العبارات الرئيسية: اكتب العبارات التي تود التركيز عليها، مثل تلك المذكورة أعلاه.
  3. تكرار العبارات بصوت عالٍ: كرر الجمل التي سمعتها وحاول تقليد نبرة الصوت والإيقاع.
  4. استخدم أسلوب التظليل: ابدأ بالتحدث مع الفيديو أثناء التشغيل، حاول أن تتبع المتحدث وتزامن صوتك مع صوته.
  5. ممارسة مستمرة: كرر العملية بانتظام، وأضف فيديوهات أخرى لتحسين مهاراتك في المحادثة بشكل أكبر.

بتطبيق تلك الخطوات، ستتمكن من تعزيز قدراتك في اللغة الإنجليزية وتحسين مهارات "ممارسة المحادثة الإنجليزية" لديك. تقنية التظليل هي أداة فعالة تساعدك على تطوير نطقك، وتحسين فهمك، وزيادة ثقتك أثناء التحدث.

ما هي تقنية التظليل الصوتي؟

التظليل الصوتي (Shadowing) تقنية تعلم لغة مدعومة علمياً، طُورت أصلاً لتدريب المترجمين الفوريين المحترفين. الطريقة بسيطة لكنها قوية: تستمع لصوت إنجليزي أصلي وتكرره فوراً بصوت عالٍ — كظل يتبع المتحدث بتأخير 1-2 ثانية. تُظهر الأبحاث تحسناً كبيراً في دقة النطق والتنغيم والإيقاع وربط الأصوات والاستماع والطلاقة.