Instructions to use acceler-technology/dev-lhdn-parse-t5-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use acceler-technology/dev-lhdn-parse-t5-model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("acceler-technology/dev-lhdn-parse-t5-model") model = AutoModelForSeq2SeqLM.from_pretrained("acceler-technology/dev-lhdn-parse-t5-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
LHDN Text Parser · T5 · Development
A T5 model for the acceler-technology team's LHDN document-processing project. This development checkpoint explores converting document text into structured output, complementing the team's image-based Donut approach.
中文简介: 团队用于 LHDN 文档文本解析的 T5 开发模型,探索将文档文本转成结构化信息。
Purpose and model details
T5 maps an input text sequence to an output text sequence. This repository's configuration includes an extract_json task setting with an output length of 512 tokens. Images and PDFs need a separate text-extraction step before this text model can process their content.
| Item | Value |
|---|---|
| Role | Development checkpoint |
| Architecture | T5ForConditionalGeneration |
| Encoder / decoder layers | 12 / 12 |
| Hidden size | 768 |
| Saved Transformers version | 4.52.4 |
Source: config.json. The upstream checkpoint is not identified in that configuration.
Load the model
Install torch, transformers, and sentencepiece first.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "acceler-technology/dev-lhdn-parse-t5-model"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
model.eval()
This example loads the saved artifacts. The input format, task prefix, and output schema must match the training setup. It is not a validated extraction demo.
Project and limitations
Related project data is held in lhdn-dataset, which remains private. The exact training subset, full recipe, and quantitative evaluation results are not documented here. Check generated fields against the source document before use. The model does not determine tax or legal outcomes.
Team and links
Developed within acceler-technology. Henry (HenryTeo27) led this project area, executed the data work, and participated in model training and technical discussions. kwyong handled model uploads.
Project showcase · Donut development model · BERT development model
A license has not been specified for this checkpoint. Public visibility alone does not grant unrestricted reuse rights.
- Downloads last month
- 10