Quay lại Trending
RepositoryPythonTWĐài Loan
JA

jadore801120/attention-is-all-you-need-pytorch

A PyTorch implementation of the Transformer model in "Attention is All You Need".

9.8ksao
2.1kfork
66issue
8lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: attention

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: attention-is-all-you-need

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: nlp

#2 Repository của tuần

🚀 Transformer từ A đến Z bằng PyTorch

Bản cài đặt PyTorch trực tiếp của kiến trúc Transformer từ bài nền tảng 'Attention is All You Need'.

Dự án cung cấp mã nguồn Python cài đặt mô hình Transformer dựa trên cơ chế self-attention thay thế hoàn toàn cho CNN và RNN, đạt hiệu suất cao trên tác vụ dịch máy WMT 2014. Dự án hỗ trợ cả huấn luyện và dịch thuật với mô hình đã được huấn luyện.

✨ Điểm nổi bật

  • Self-attention mechanism: Thay thế CNN/RNN bằng cơ chế self-attention để xử lý tuần tự.
  • Hỗ trợ huấn luyện và dịch: Cung cấp công cụ chạy dịch với mô hình đã huấn luyện.
  • Tích hợp WMT'16 Multimodal: Hỗ trợ huấn luyện trên tác vụ dịch đa hình WMT'16.
  • Chia sẻ embedding: Hỗ trợ chia sẻ trọng số embedding và tầng chiếu đầu ra.
  • Label smoothing: Áp dụng kỹ thuật label smoothing để cải thiện hiệu suất.
  • Byte Pair Encoding (BPE): Hỗ trợ BPE cho xử lý từ vựng con (đang phát triển).

💡 Vì sao đáng chú ý

Khác với các cách tiếp cận truyền thống dựa trên RNN hoặc CNN, Transformer sử dụng hoàn toàn cơ chế self-attention, giúp tối ưu hóa quá trình huấn luyện và cải thiện đáng kể hiệu suất. Dự án cung cấp một nền tảng rõ ràng, dễ hiểu để nghiên cứu và triển khai mô hình Transformer từ đầu.


#Transformer #PyTorch #AI #MachineTranslation #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryJupyter Notebook
GokuMohandas/Made-With-ML

Learn how to develop, deploy and iterate on production-grade ML applications.

50.3k
Mar 4, 2026
RepositoryPython
d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。

82.9k
Jul 30, 2024
RepositoryJupyter Notebook
graykode/nlp-tutorial

Natural Language Processing Tutorial for Deep Learning Researchers

14.9k
Feb 21, 2024
RepositoryPython
ultralytics/ultralytics

Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking

63.9k
Dec 1, 2026
RepositoryPython
google-research/bert

TensorFlow code and pre-trained models for BERT

40.0k
Jul 23, 2024
RepositoryPython
hankcs/HanLP

Natural Language Processing for the next decade. Tokenization, Part-of-Speech Tagging, Named Entity Recognition, Syntactic & Semantic Dependency Parsing, Document Classification

36.5k
Nov 7, 2026
RepositoryPython
NandhaKishorM/laya

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

36.1k
Nov 30, 2026
RepositoryPython
explosion/spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python

34.1k
Nov 21, 2026