Đài Loanjadore801120/attention-is-all-you-need-pytorch
A PyTorch implementation of the Transformer model in "Attention is All You Need".
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#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.
🤗 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.
Learn how to develop, deploy and iterate on production-grade ML applications.
Natural Language Processing Tutorial for Deep Learning Researchers
Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking
Natural Language Processing for the next decade. Tokenization, Part-of-Speech Tagging, Named Entity Recognition, Syntactic & Semantic Dependency Parsing, Document Classification
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.