larc-iu/gen-sr-t5gemma-2-1b-1b-gum-12.1.0
0
6 commits
1 linked in READMEs
updated Oct 11, 2026
A pretrained generative RST parser (an end-to-end RST parser that fine-tunes a language model to generate a linearized tree (a bottom-up shift-reduce action sequence or a nested s-expression) and recovers segmentation + structure from the decoded string; the backbone (encoder-decoder or causal) and serialization are config-selected) developed and trained in Dipo.
This model uses google/t5gemma-2-1b-1b as its underlying encoder.
GUM 12.1.0 (Georgetown University Multilayer corpus) (English). A multi-genre English corpus (academic, biography, fiction, interview, news, reddit, speech, textbook, vlog, voyage, whow) annotated for RST among many other layers.
Relation labels: 32 labels:
adversative-antithesis, adversative-concession, adversative-contrast, attribution-negative, attribution-positive, causal-cause, causal-result, context-background, context-circumstance, contingency-condition, elaboration-additional, elaboration-attribute, evaluation-comment, explanation-evidence, explanation-justify, explanation-motivation, joint-disjunction, joint-list, joint-other, joint-sequence, mode-manner, mode-means, organization-heading, organization-phatic, organization-preparation, purpose-attribute, purpose-goal, restatement-partial, restatement-repetition, same-unit, topic-question, topic-solutionhood
| Split | Seg | E2E Span | E2E Nuc | E2E Rel | E2E Full | Gold-EDU Span | Gold-EDU Nuc | Gold-EDU Rel | Gold-EDU Full |
|---|---|---|---|---|---|---|---|---|---|
| dev | 95.4 | 61.6 | 47.6 | 37.7 | 37.4 | 65.4 | 51.8 | 41.6 | 41.3 |
| test | 95.6 | 64.0 | 49.9 | 39.5 | 39.4 | 68.4 | 54.6 | 43.3 | 43.2 |
F1 x 100 under original Parseval, with trivial leaf spans excluded. E2E scores parse trees predicted from raw text, segmentation included. Gold-EDU scores them given the gold EDU segmentation. Seg is the per-token BeginSeg F1 computed during training, which can read up to about a point below the official DISRPT scorer's value. The checkpoint was selected on dev e2e_full_f1.
Install the library first with pip install dipo.
dipo gen predict \
--hub-id larc-iu/gen-sr-t5gemma-2-1b-1b-gum-12.1.0 \
--text 'Although the experiment was carefully designed, the results were inconclusive. We plan to repeat it tonight.'
To parse a raw .txt file or a directory of them instead, use --text-file <path> --output-dir out/.
from dipo.rst.parsers.gen.modeling_gen import GenParser
parser = GenParser.from_pretrained("larc-iu/gen-sr-t5gemma-2-1b-1b-gum-12.1.0")
tree = parser.predict_from_text(
"Although the experiment was carefully designed, the results were inconclusive. We plan to repeat it tonight."
)
print(tree.to_rs4_string())
If you use this model, please cite the Dipo library:
@misc{gessler-dipo-2026,
author = {Gessler, Luke},
title = {{Dipo: The Discourse Parsing Omnibus}},
year = {2026},
howpublished = {\url{https://github.com/larc-iu/dipo}},
}
edu.strip() if that matters for your use.google/t5gemma-2-1b-1b from the Hub, whose weights are then replaced by these.google/t5gemma-2-1b-1b is gated on Hugging Face. Before the first run, open https://huggingface.co/google/t5gemma-2-1b-1b, accept its terms, and log in with huggingface-cli login (or set HF_TOKEN). Without that, loading fails with a "gated repo" 401 error.google/t5gemma-2-1b-1b, so use of these weights is subject to that model's terms: the Gemma Terms of Use.See below for the full training configuration this model was trained with.
{
"train_dir": "data/gum_12.1.0_notok/train",
"dev_dir": "data/gum_12.1.0_notok/dev",
"backbone": "seq2seq",
"serialization": "sr",
"test_dir": "data/gum_12.1.0_notok/test",
"relation_types": [
[
"adversative-antithesis",
"rst"
],
[
"adversative-concession",
"rst"
],
[
"adversative-contrast",
"multinuc"
],
[
"attribution-negative",
"rst"
],
[
"attribution-positive",
"rst"
],
[
"causal-cause",
"rst"
],
[
"causal-result",
"rst"
],
[
"context-background",
"rst"
],
[
"context-circumstance",
"rst"
],
[
"contingency-condition",
"rst"
],
[
"elaboration-additional",
"rst"
],
[
"elaboration-attribute",
"rst"
],
[
"evaluation-comment",
"rst"
],
[
"explanation-evidence",
"rst"
],
[
"explanation-justify",
"rst"
],
[
"explanation-motivation",
"rst"
],
[
"joint-disjunction",
"multinuc"
],
[
"joint-list",
"multinuc"
],
[
"joint-other",
"multinuc"
],
[
"joint-sequence",
"multinuc"
],
[
"mode-manner",
"rst"
],
[
"mode-means",
"rst"
],
[
"organization-heading",
"rst"
],
[
"organization-phatic",
"rst"
],
[
"organization-preparation",
"rst"
],
[
"purpose-attribute",
"rst"
],
[
"purpose-goal",
"rst"
],
[
"restatement-partial",
"rst"
],
[
"restatement-repetition",
"multinuc"
],
[
"same-unit",
"multinuc"
],
[
"topic-question",
"rst"
],
[
"topic-solutionhood",
"rst"
]
],
"relation_map": null,
"model_name": "google/t5gemma-2-1b-1b",
"max_input_length": 16384,
"max_output_length": 16384,
"gradient_checkpointing": true,
"peft": {
"r": 16,
"alpha": 32,
"dropout": 0.1,
"target_modules": "all-linear",
"bias": "none",
"dora": false,
"modules_to_save": [
"embed_tokens"
],
"train_only_new_embedding_rows": true,
"base_dtype": "float32",
"gradient_checkpointing": false,
"load_in_4bit": false,
"bnb_4bit_quant_type": "nf4",
"bnb_4bit_use_double_quant": true,
"bnb_4bit_compute_dtype": "bfloat16"
},
"chat_template": null,
"curriculum": {
"type": "subtree_size",
"size_schedule": [
8,
16,
32,
64,
null
],
"phase_epochs": [
8,
4,
4,
4,
40
],
"max_epoch_expand_factor": 2
},
"lr": 0.0003,
"new_row_lr": null,
"weight_decay": 0.05,
"batch_size": 1,
"grad_accum": 8,
"optimizer": "adafactor",
"num_warmup_steps": null,
"min_lr_frac": 0.1,
"fulldoc_warmup_steps": 150,
"max_grad_norm": 1,
"amp": true,
"patience": 60,
"patience_window": 1,
"log_every": 5,
"begin_validation_epoch": 0,
"validate_every": 2,
"checkpoint_trainable_only": false,
"run_name": "release-gen-sr-t5gemma2-1b-gum",
"seed": 42,
"val_metric_name": "e2e_full_f1",
"num_beams": 1,
"eval_decode_greedy": true,
"min_edu_length": 1,
"dev_max_docs": null,
"dev_batch_size": 4,
"batched_decode": true,
"action_loss_weight": 1,
"width_band_loss": null,
"edu_loss_weight_exponent": 0,
"label_smoothing": 0.1,
"traversal_order": "postorder",
"use_copy": true,
"label_style": "token"
}
larc-iu/gen-sr-t5gemma-2-1b-1b-gum-12.1.0
0
6 commits
1 linked in READMEs
updated Oct 11, 2026
A pretrained generative RST parser (an end-to-end RST parser that fine-tunes a language model to generate a linearized tree (a bottom-up shift-reduce action sequence or a nested s-expression) and recovers segmentation + structure from the decoded string; the backbone (encoder-decoder or causal) and serialization are config-selected) developed and trained in Dipo.
This model uses google/t5gemma-2-1b-1b as its underlying encoder.
GUM 12.1.0 (Georgetown University Multilayer corpus) (English). A multi-genre English corpus (academic, biography, fiction, interview, news, reddit, speech, textbook, vlog, voyage, whow) annotated for RST among many other layers.
Relation labels: 32 labels:
adversative-antithesis, adversative-concession, adversative-contrast, attribution-negative, attribution-positive, causal-cause, causal-result, context-background, context-circumstance, contingency-condition, elaboration-additional, elaboration-attribute, evaluation-comment, explanation-evidence, explanation-justify, explanation-motivation, joint-disjunction, joint-list, joint-other, joint-sequence, mode-manner, mode-means, organization-heading, organization-phatic, organization-preparation, purpose-attribute, purpose-goal, restatement-partial, restatement-repetition, same-unit, topic-question, topic-solutionhood
| Split | Seg | E2E Span | E2E Nuc | E2E Rel | E2E Full | Gold-EDU Span | Gold-EDU Nuc | Gold-EDU Rel | Gold-EDU Full |
|---|---|---|---|---|---|---|---|---|---|
| dev | 95.4 | 61.6 | 47.6 | 37.7 | 37.4 | 65.4 | 51.8 | 41.6 | 41.3 |
| test | 95.6 | 64.0 | 49.9 | 39.5 | 39.4 | 68.4 | 54.6 | 43.3 | 43.2 |
F1 x 100 under original Parseval, with trivial leaf spans excluded. E2E scores parse trees predicted from raw text, segmentation included. Gold-EDU scores them given the gold EDU segmentation. Seg is the per-token BeginSeg F1 computed during training, which can read up to about a point below the official DISRPT scorer's value. The checkpoint was selected on dev e2e_full_f1.
Install the library first with pip install dipo.
dipo gen predict \
--hub-id larc-iu/gen-sr-t5gemma-2-1b-1b-gum-12.1.0 \
--text 'Although the experiment was carefully designed, the results were inconclusive. We plan to repeat it tonight.'
To parse a raw .txt file or a directory of them instead, use --text-file <path> --output-dir out/.
from dipo.rst.parsers.gen.modeling_gen import GenParser
parser = GenParser.from_pretrained("larc-iu/gen-sr-t5gemma-2-1b-1b-gum-12.1.0")
tree = parser.predict_from_text(
"Although the experiment was carefully designed, the results were inconclusive. We plan to repeat it tonight."
)
print(tree.to_rs4_string())
If you use this model, please cite the Dipo library:
@misc{gessler-dipo-2026,
author = {Gessler, Luke},
title = {{Dipo: The Discourse Parsing Omnibus}},
year = {2026},
howpublished = {\url{https://github.com/larc-iu/dipo}},
}
edu.strip() if that matters for your use.google/t5gemma-2-1b-1b from the Hub, whose weights are then replaced by these.google/t5gemma-2-1b-1b is gated on Hugging Face. Before the first run, open https://huggingface.co/google/t5gemma-2-1b-1b, accept its terms, and log in with huggingface-cli login (or set HF_TOKEN). Without that, loading fails with a "gated repo" 401 error.google/t5gemma-2-1b-1b, so use of these weights is subject to that model's terms: the Gemma Terms of Use.See below for the full training configuration this model was trained with.
{
"train_dir": "data/gum_12.1.0_notok/train",
"dev_dir": "data/gum_12.1.0_notok/dev",
"backbone": "seq2seq",
"serialization": "sr",
"test_dir": "data/gum_12.1.0_notok/test",
"relation_types": [
[
"adversative-antithesis",
"rst"
],
[
"adversative-concession",
"rst"
],
[
"adversative-contrast",
"multinuc"
],
[
"attribution-negative",
"rst"
],
[
"attribution-positive",
"rst"
],
[
"causal-cause",
"rst"
],
[
"causal-result",
"rst"
],
[
"context-background",
"rst"
],
[
"context-circumstance",
"rst"
],
[
"contingency-condition",
"rst"
],
[
"elaboration-additional",
"rst"
],
[
"elaboration-attribute",
"rst"
],
[
"evaluation-comment",
"rst"
],
[
"explanation-evidence",
"rst"
],
[
"explanation-justify",
"rst"
],
[
"explanation-motivation",
"rst"
],
[
"joint-disjunction",
"multinuc"
],
[
"joint-list",
"multinuc"
],
[
"joint-other",
"multinuc"
],
[
"joint-sequence",
"multinuc"
],
[
"mode-manner",
"rst"
],
[
"mode-means",
"rst"
],
[
"organization-heading",
"rst"
],
[
"organization-phatic",
"rst"
],
[
"organization-preparation",
"rst"
],
[
"purpose-attribute",
"rst"
],
[
"purpose-goal",
"rst"
],
[
"restatement-partial",
"rst"
],
[
"restatement-repetition",
"multinuc"
],
[
"same-unit",
"multinuc"
],
[
"topic-question",
"rst"
],
[
"topic-solutionhood",
"rst"
]
],
"relation_map": null,
"model_name": "google/t5gemma-2-1b-1b",
"max_input_length": 16384,
"max_output_length": 16384,
"gradient_checkpointing": true,
"peft": {
"r": 16,
"alpha": 32,
"dropout": 0.1,
"target_modules": "all-linear",
"bias": "none",
"dora": false,
"modules_to_save": [
"embed_tokens"
],
"train_only_new_embedding_rows": true,
"base_dtype": "float32",
"gradient_checkpointing": false,
"load_in_4bit": false,
"bnb_4bit_quant_type": "nf4",
"bnb_4bit_use_double_quant": true,
"bnb_4bit_compute_dtype": "bfloat16"
},
"chat_template": null,
"curriculum": {
"type": "subtree_size",
"size_schedule": [
8,
16,
32,
64,
null
],
"phase_epochs": [
8,
4,
4,
4,
40
],
"max_epoch_expand_factor": 2
},
"lr": 0.0003,
"new_row_lr": null,
"weight_decay": 0.05,
"batch_size": 1,
"grad_accum": 8,
"optimizer": "adafactor",
"num_warmup_steps": null,
"min_lr_frac": 0.1,
"fulldoc_warmup_steps": 150,
"max_grad_norm": 1,
"amp": true,
"patience": 60,
"patience_window": 1,
"log_every": 5,
"begin_validation_epoch": 0,
"validate_every": 2,
"checkpoint_trainable_only": false,
"run_name": "release-gen-sr-t5gemma2-1b-gum",
"seed": 42,
"val_metric_name": "e2e_full_f1",
"num_beams": 1,
"eval_decode_greedy": true,
"min_edu_length": 1,
"dev_max_docs": null,
"dev_batch_size": 4,
"batched_decode": true,
"action_loss_weight": 1,
"width_band_loss": null,
"edu_loss_weight_exponent": 0,
"label_smoothing": 0.1,
"traversal_order": "postorder",
"use_copy": true,
"label_style": "token"
}