# 🤗 Transformers Notebooks

Bạn có thể tìm thấy tại đây danh sách các notebook chính thức do Hugging Face cung cấp.

Ngoài ra, chúng tôi cũng muốn liệt kê tại đây các nội dung thú vị do cộng đồng tạo ra. Nếu bạn đã viết một hoặc nhiều notebook tận dụng 🤗 Transformers và muốn được liệt kê tại đây, vui lòng mở một Pull Request để nó có thể được đưa vào phần Community notebooks.

## Notebook của Hugging Face 🤗

### Sổ ghi chú tài liệu

Bạn có thể mở bất kỳ trang nào của tài liệu dưới dạng notebook trong Colab (có nút trực tiếp trên các trang đó) nhưng chúng cũng được liệt kê tại đây nếu bạn cần:

| Notebook     |      Mô tả      |   |   |   |
|:----------|:-------------|:-------------|:------------|------:|
| [Khảo sát nhanh thư viện](https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/quicktour.ipynb)  | Trình bày về các API khác nhau trong Transformers |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/quicktour.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/en/transformers_doc/quicktour.ipynb)| |
| [Tóm tắt các tác vụ](https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/task_summary.ipynb)  | Cách chạy các mô hình của thư viện Transformers theo từng tác vụ |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/task_summary.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/task_summary.ipynb)| |
| [Tiền xử lý dữ liệu](https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/preprocessing.ipynb)  | Cách sử dụng tokenizer để tiền xử lý dữ liệu của bạn |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/preprocessing.ipynb) | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/preprocessing.ipynb)||
| [Chỉnh huấn luyện một mô hình được huấn luyện trước](https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/training.ipynb)  | Cách sử dụng Trainer để tinh chỉnh một mô hình được huấn luyện trước |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/training.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/training.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/transformers_doc/en/training.ipynb)|
| [Tóm tắt về các bộ mã hóa token](https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/tokenizer_summary.ipynb)  | Sự khác nhau giữa các thuật toán của tokenizer |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/tokenizer_summary.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/tokenizer_summary.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/transformers_doc/en/tokenizer_summary.ipynb )|
| [Mô hình đa ngôn ngữ](https://github.com/huggingface/notebooks/blob/main/transformers_doc/en/multilingual.ipynb)  | Cách sử dụng các mô hình đa ngôn ngữ của thư viện |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/multilingual.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/multilingual.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/transformers_doc/en/multilingual.ipynb)|

### Ví dụ PyTorch

#### Xử lý ngôn ngữ tự nhiên[[pytorch-nlp]]

| Notebook     |      Mô tả      |   |   |   |
|:----------|:-------------|:-------------|:-------------|------:|
| [Đào tạo tokenizer của bạn](https://github.com/huggingface/notebooks/blob/main/examples/tokenizer_training.ipynb)  | Cách huấn luyện và sử dụng bộ phân từ của riêng bạn  |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/tokenizer_training.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/tokenizer_training.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/tokenizer_training.ipynb)|
| [Đào tạo mô hình ngôn ngữ của bạn](https://github.com/huggingface/notebooks/blob/main/examples/language_modeling_from_scratch.ipynb)   | Cách bắt đầu sử dụng transformers một cách dễ dàng  |[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/language_modeling_from_scratch.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/language_modeling_from_scratch.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/language_modeling_from_scratch.ipynb)|
| [Cách tinh chỉnh mô hình cho phân loại văn bản](https://github.com/huggingface/notebooks/blob/main/examples/text_classification.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên bất kỳ tác vụ GLUE nào. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/text_classification.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/text_classification.ipynb)| |
| [Cách tinh chỉnh mô hình cho mô hình hóa ngôn ngữ](https://github.com/huggingface/notebooks/blob/main/examples/language_modeling.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên tác vụ LM nhân quả hoặc LM bị che. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/language_modeling.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/language_modeling.ipynb)| [![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/language_modeling.ipynb)|
| [Cách tinh chỉnh mô hình cho phân loại token](https://github.com/huggingface/notebooks/blob/main/examples/token_classification.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên tác vụ phân loại token (NER, PoS). | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/token_classification.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/token_classification.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/token_classification.ipynb)|
| [Cách tinh chỉnh mô hình cho câu hỏi và trả lời](https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên SQUAD. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/question_answering.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/question_answering.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/question_answering.ipynb)|
| [Cách tinh chỉnh mô hình trên dữ liệu lựa chọn nhiều](https://github.com/huggingface/notebooks/blob/main/examples/multiple_choice.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên SWAG. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/multiple_choice.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/multiple_choice.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/multiple_choice.ipynb)|
| [Cách tinh chỉnh mô hình cho dịch thuật](https://github.com/huggingface/notebooks/blob/main/examples/translation.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên WMT. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/translation.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/translation.ipynb)|[![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/translation.ipynb)|
| [Cách tinh chỉnh mô hình cho tóm tắt](https://github.com/huggingface/notebooks/blob/main/examples/summarization.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình được huấn luyện trước trên XSUM. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/summarization.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/summarization.ipynb)| |
| [Cách huấn luyện một mô hình ngôn ngữ từ đầu](https://github.com/huggingface/blog/blob/main/notebooks/01_how_to_train.ipynb)| Nổi bật tất cả các bước để huấn luyện hiệu quả mô hình Transformer trên dữ liệu tùy chỉnh | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/blog/blob/main/notebooks/01_how_to_train.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/blog/blob/main/notebooks/01_how_to_train.ipynb)| |
| [Cách tạo văn bản](https://github.com/huggingface/blog/blob/main/notebooks/02_how_to_generate.ipynb)| Cách sử dụng các phương pháp giải mã khác nhau cho việc tạo ngôn ngữ với transformers | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/blog/blob/main/notebooks/02_how_to_generate.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/blog/blob/main/notebooks/02_how_to_generate.ipynb)| |
| [Reformer](https://github.com/huggingface/blog/blob/main/notebooks/03_reformer.ipynb)| Cách Reformer đẩy giới hạn của mô hình hóa ngôn ngữ | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/patrickvonplaten/blog/blob/main/notebooks/03_reformer.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/patrickvonplaten/blog/blob/main/notebooks/03_reformer.ipynb)| |

#### Thị giác máy tính[[pytorch-cv]]

| Notebook                                                                                                                                                                   | Mô tả                                                                                                            |                                                                                                                                                                                                            |   |   |
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------|------:|
| [Cách tinh chỉnh mô hình cho phân loại ảnh (Torchvision)](https://github.com/huggingface/notebooks/blob/main/examples/image_classification.ipynb)                   | Hiển thị cách tiền xử lý dữ liệu bằng Torchvision và tinh chỉnh bất kỳ mô hình thị giác được huấn luyện trước nào trên bài toán Phân loại Ảnh    | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb)                 | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb)| [![Open in AMD Dev Cloud](https://oneclickamd.ai/static/amd.svg?v=2)](https://oneclickamd.ai/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb)|
| [Cách tinh chỉnh mô hình cho phân loại ảnh (Albumentations)](https://github.com/huggingface/notebooks/blob/main/examples/image_classification_albumentations.ipynb) | Hiển thị cách tiền xử lý dữ liệu bằng Albumentations và tinh chỉnh bất kỳ mô hình Vision nào đã được huấn luyện trước trên bài toán Phân loại Ảnh | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification_albumentations.ipynb)  | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/image_classification_albumentations.ipynb)| |
| [Cách tinh chỉnh mô hình cho phân loại ảnh (Kornia)](https://github.com/huggingface/notebooks/blob/main/examples/image_classification_kornia.ipynb)                 | Hiển thị cách tiền xử lý dữ liệu bằng Kornia và tinh chỉnh bất kỳ mô hình thị giác được huấn luyện trước nào cho Phân loại Ảnh         | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification_kornia.ipynb)          | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/image_classification_kornia.ipynb)| |
| [Cách thực hiện phát hiện đối tượng zero-shot với OWL-ViT](https://github.com/huggingface/notebooks/blob/main/examples/zeroshot_object_detection_with_owlvit.ipynb)          | Hiển thị cách thực hiện phát hiện đối tượng zero-shot trên các hình ảnh bằng các truy vấn văn bản                                             | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/zeroshot_object_detection_with_owlvit.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/zeroshot_object_detection_with_owlvit.ipynb)| |
| [Cách tinh chỉnh mô hình chú thích hình ảnh](https://github.com/huggingface/notebooks/blob/main/examples/image_captioning_blip.ipynb)                                      | Hiển thị cách tinh chỉnh BLIP cho việc chú thích hình ảnh trên một tập dữ liệu tùy chỉnh                                                    | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_captioning_blip.ipynb)                | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/image_captioning_blip.ipynb)| |
| [Cách xây dựng hệ thống tương đồng hình ảnh với Transformers](https://github.com/huggingface/notebooks/blob/main/examples/image_similarity.ipynb)                            | Hiển thị cách xây dựng một hệ thống tương đồng hình ảnh                                                                           | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_similarity.ipynb)                     | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/image_similarity.ipynb)| |
| [Cách tinh chỉnh mô hình SegFormer cho phân đoạn ngữ nghĩa](https://github.com/huggingface/notebooks/blob/main/examples/semantic_segmentation.ipynb)                     | Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình SegFormer được huấn luyện trước trên bài toán Phân đoạn ngữ nghĩa                    | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/semantic_segmentation.ipynb)                | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/semantic_segmentation.ipynb)| |
| [Cách tinh chỉnh mô hình VideoMAE cho phân loại video](https://github.com/huggingface/notebooks/blob/main/examples/video_classification.ipynb)          | Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình VideoMAE được huấn luyện trước trên Phân loại Video                      | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/video_classification.ipynb)                | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/video_classification.ipynb)| |

#### Âm thanh[[pytorch-audio]]

| Notebook     |      Mô tả      |   |   |
|:----------|:-------------|:-------------|------:|
| [Cách tinh chỉnh mô hình nhận dạng giọng nói bằng tiếng Anh](https://github.com/huggingface/notebooks/blob/main/examples/speech_recognition.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình Speech được huấn luyện trước trên TIMIT | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/speech_recognition.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/speech_recognition.ipynb)|
| [Cách tinh chỉnh mô hình nhận dạng giọng nói trong bất kỳ ngôn ngữ nào](https://github.com/huggingface/notebooks/blob/main/examples/multi_lingual_speech_recognition.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh mô hình giọng nói được tiền huấn luyện đa ngôn ngữ trên Common Voice | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/multi_lingual_speech_recognition.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/multi_lingual_speech_recognition.ipynb)|
| [Cách tinh chỉnh mô hình cho phân loại âm thanh](https://github.com/huggingface/notebooks/blob/main/examples/audio_classification.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình Speech được huấn luyện trước trên Keyword Spotting | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/audio_classification.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/audio_classification.ipynb)|

#### Chuỗi sinh học[[pytorch-bio]]

| Notebook     | Mô tả                                                                             |   |   |
|:----------|:----------------------------------------------------------------------------------------|:-------------|------:|
| [Cách tinh chỉnh một mô hình protein được huấn luyện trước](https://github.com/huggingface/notebooks/blob/main/examples/protein_language_modeling.ipynb) | Xem cách thực hiện token hóa protein và tinh chỉnh một mô hình “ngôn ngữ” protein lớn đã được huấn luyện trước | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/protein_language_modeling.ipynb) | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/protein_language_modeling.ipynb) |
| [Cách tạo các cấu trúc gấp cuộn của protein](https://github.com/huggingface/notebooks/blob/main/examples/protein_folding.ipynb) | Xem cách chuyển từ trình tự protein sang mô hình protein hoàn chỉnh và tệp PDB                | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/protein_folding.ipynb) | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/protein_folding.ipynb) |
| [Cách tinh chỉnh một mô hình Nucleotide Transformer](https://github.com/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling.ipynb) | Xem cách thực hiện tokenize DNA và tinh chỉnh một mô hình "ngôn ngữ" DNA lớn đã được huấn luyện trước | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling.ipynb) | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling.ipynb) |
| [Chỉnh huấn mô hình Nucleotide Transformer với LoRA](https://github.com/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling_with_peft.ipynb) | Huấn luyện các mô hình DNA lớn hơn một cách tiết kiệm bộ nhớ | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling_with_peft.ipynb) | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling_with_peft.ipynb) |

#### Các phương thức khác[[pytorch-other]]

| Notebook     | Mô tả                                                                             |   |   |
|:----------|:----------------------------------------------------------------------------------------|:-------------|------:|
| [Dự báo chuỗi thời gian xác suất](https://github.com/huggingface/notebooks/blob/main/examples/time-series-transformers.ipynb) | Xem cách huấn luyện Time Series Transformer trên bộ dữ liệu tùy chỉnh                            | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/time-series-transformers.ipynb) | [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/time-series-transformers.ipynb) |

#### Sổ ghi chú tiện ích[[pytorch-utility]]

| Notebook     |      Mô tả      |   |   |
|:----------|:-------------|:-------------|------:|
| [Cách xuất mô hình sang ONNX](https://github.com/huggingface/notebooks/blob/main/examples/onnx-export.ipynb)| Nổi bật cách xuất và chạy các tác vụ suy luận thông qua ONNX | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/onnx-export.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/onnx-export.ipynb)|

### Sổ tay ghi chú Optimum

🤗  [Optimum](https://github.com/huggingface/optimum) là phần mở rộng của 🤗 Transformers, cung cấp một bộ công cụ tối ưu hóa hiệu năng giúp đạt hiệu quả tối đa khi huấn luyện và chạy mô hình trên phần cứng mục tiêu.

| Notebook     |      Mô tả      |   |   |
|:----------|:-------------|:-------------|------:|
| [Cách lượng tử hóa một mô hình bằng ONNX Runtime cho phân loại văn bản](https://github.com/huggingface/notebooks/blob/main/examples/text_classification_quantization_ort.ipynb)| Hiển thị cách áp dụng lượng tử hóa tĩnh và động lên một mô hình bằng [ONNX Runtime](https://github.com/microsoft/onnxruntime) cho bất kỳ tác vụ GLUE nào. | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/text_classification_quantization_ort.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/text_classification_quantization_ort.ipynb)|
| [Cách tinh chỉnh mô hình cho phân loại văn bản với ONNX Runtime](https://github.com/huggingface/notebooks/blob/main/examples/text_classification_ort.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh mô hình trên bất kỳ tác vụ GLUE nào bằng [ONNX Runtime](https://github.com/microsoft/onnxruntime). | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/text_classification_ort.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/text_classification_ort.ipynb)|
| [Cách tinh chỉnh mô hình cho tóm tắt bằng ONNX Runtime](https://github.com/huggingface/notebooks/blob/main/examples/summarization_ort.ipynb)| Hiển thị cách tiền xử lý dữ liệu và tinh chỉnh một mô hình trên XSUM bằng [ONNX Runtime](https://github.com/microsoft/onnxruntime). | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/summarization_ort.ipynb)| [![Open in AWS Studio](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/examples/summarization_ort.ipynb)|

## Sổ tay ghi chú của cộng đồng

Nhiều notebook do cộng đồng phát triển có sẵn [tại đây](https://hf.co/docs/transformers/community#community-notebooks).

