trientp commited on
Commit
1516d79
1 Parent(s): 5259b65

Training in progress, epoch 2

Browse files
Files changed (4) hide show
  1. Untitled.ipynb +145 -0
  2. config.json +1 -1
  3. pytorch_model.bin +2 -2
  4. training_args.bin +3 -0
Untitled.ipynb ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "id": "482c2cab-2174-4ab9-bd15-bdd21abe8900",
7
+ "metadata": {},
8
+ "outputs": [
9
+ {
10
+ "data": {
11
+ "text/html": [
12
+ "<a href='pytorch_model.bin' target='_blank'>pytorch_model.bin</a><br>"
13
+ ],
14
+ "text/plain": [
15
+ "/workspace/vit5/pytorch_model.bin"
16
+ ]
17
+ },
18
+ "execution_count": 1,
19
+ "metadata": {},
20
+ "output_type": "execute_result"
21
+ }
22
+ ],
23
+ "source": [
24
+ "from IPython.display import FileLink, FileLinks\n",
25
+ "FileLink('pytorch_model.bin')"
26
+ ]
27
+ },
28
+ {
29
+ "cell_type": "code",
30
+ "execution_count": 2,
31
+ "id": "4314353d-9e70-40ae-a8a8-5c13b6322612",
32
+ "metadata": {},
33
+ "outputs": [
34
+ {
35
+ "data": {
36
+ "application/vnd.jupyter.widget-view+json": {
37
+ "model_id": "9f61e56a4f16415d86ac9e8c1460cba7",
38
+ "version_major": 2,
39
+ "version_minor": 0
40
+ },
41
+ "text/plain": [
42
+ "VBox(children=(HTML(value='<center> <img\\nsrc=https://huggingface.co/front/assets/huggingface_logo-noborder.sv…"
43
+ ]
44
+ },
45
+ "metadata": {},
46
+ "output_type": "display_data"
47
+ }
48
+ ],
49
+ "source": [
50
+ "from huggingface_hub import notebook_login\n",
51
+ "\n",
52
+ "notebook_login()"
53
+ ]
54
+ },
55
+ {
56
+ "cell_type": "code",
57
+ "execution_count": 4,
58
+ "id": "ac1a68a6-8286-4da2-bd8a-0d480127e0cb",
59
+ "metadata": {},
60
+ "outputs": [],
61
+ "source": [
62
+ "from transformers import AutoModelForSeq2SeqLM, AutoTokenizer\n",
63
+ "model = AutoModelForSeq2SeqLM.from_pretrained(\"/workspace/vit5\")"
64
+ ]
65
+ },
66
+ {
67
+ "cell_type": "code",
68
+ "execution_count": 5,
69
+ "id": "059f7512-2173-4b39-8fbf-cde2403d430e",
70
+ "metadata": {},
71
+ "outputs": [
72
+ {
73
+ "data": {
74
+ "application/vnd.jupyter.widget-view+json": {
75
+ "model_id": "0d9b5ff3b3da4750b9851ff42fdc21bb",
76
+ "version_major": 2,
77
+ "version_minor": 0
78
+ },
79
+ "text/plain": [
80
+ "pytorch_model.bin: 0%| | 0.00/904M [00:00<?, ?B/s]"
81
+ ]
82
+ },
83
+ "metadata": {},
84
+ "output_type": "display_data"
85
+ },
86
+ {
87
+ "data": {
88
+ "text/plain": [
89
+ "CommitInfo(commit_url='https://huggingface.co/trientp/vit5_base_qa/commit/8e631d1361aa8ac8484aa4686a2861c1ea1a061d', commit_message='Upload T5ForConditionalGeneration', commit_description='', oid='8e631d1361aa8ac8484aa4686a2861c1ea1a061d', pr_url=None, pr_revision=None, pr_num=None)"
90
+ ]
91
+ },
92
+ "execution_count": 5,
93
+ "metadata": {},
94
+ "output_type": "execute_result"
95
+ }
96
+ ],
97
+ "source": [
98
+ "model.push_to_hub(\"trientp/vit5_base_qa\")"
99
+ ]
100
+ },
101
+ {
102
+ "cell_type": "code",
103
+ "execution_count": 6,
104
+ "id": "fe57b8c3-33ae-49ac-af4c-01a5cdf36831",
105
+ "metadata": {},
106
+ "outputs": [
107
+ {
108
+ "data": {
109
+ "text/plain": [
110
+ "CommitInfo(commit_url='https://huggingface.co/trientp/vit5_base_qa/commit/5259b65a3fb4645bbc5ee242d18253c58a6c0a89', commit_message='Upload tokenizer', commit_description='', oid='5259b65a3fb4645bbc5ee242d18253c58a6c0a89', pr_url=None, pr_revision=None, pr_num=None)"
111
+ ]
112
+ },
113
+ "execution_count": 6,
114
+ "metadata": {},
115
+ "output_type": "execute_result"
116
+ }
117
+ ],
118
+ "source": [
119
+ "tokenizer = AutoTokenizer.from_pretrained(\"VietAI/vit5-base\") \n",
120
+ "tokenizer.push_to_hub(\"trientp/vit5_base_qa\")"
121
+ ]
122
+ }
123
+ ],
124
+ "metadata": {
125
+ "kernelspec": {
126
+ "display_name": "Python 3 (ipykernel)",
127
+ "language": "python",
128
+ "name": "python3"
129
+ },
130
+ "language_info": {
131
+ "codemirror_mode": {
132
+ "name": "ipython",
133
+ "version": 3
134
+ },
135
+ "file_extension": ".py",
136
+ "mimetype": "text/x-python",
137
+ "name": "python",
138
+ "nbconvert_exporter": "python",
139
+ "pygments_lexer": "ipython3",
140
+ "version": "3.10.11"
141
+ }
142
+ },
143
+ "nbformat": 4,
144
+ "nbformat_minor": 5
145
+ }
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "/workspace/vit5/vit5_base_qa",
3
  "architectures": [
4
  "T5ForConditionalGeneration"
5
  ],
 
1
  {
2
+ "_name_or_path": "VietAI/vit5-base",
3
  "architectures": [
4
  "T5ForConditionalGeneration"
5
  ],
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4cf136c816d72fa4b92f75f001411af1e1fcaaeb5098ac023139e42da405f6d1
3
- size 903889041
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae80886e1b1de868f2f9f47f6a669335aa2d4004b20ee21a16d9d244bce73bab
3
+ size 903892625
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:694147249a51f4b7e4619c380f3fe851b546953e253b5142e5933c22a430641b
3
+ size 4155