Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Optimus Prime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NetSys
Optimus Prime
Commits
ee95daff
Unverified
Commit
ee95daff
authored
1 year ago
by
Alexandru-Mihai GHERGHESCU
Browse files
Options
Downloads
Patches
Plain Diff
Correctly display dataset samples
This takes into account endlines too. Just a visual accuracy change.
parent
f7b83738
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
Fix datasets memory issues
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
optimus/datasets/tinystories.py
+1
-1
1 addition, 1 deletion
optimus/datasets/tinystories.py
optimus/datasets/wikitext103.py
+1
-1
1 addition, 1 deletion
optimus/datasets/wikitext103.py
with
2 additions
and
2 deletions
optimus/datasets/tinystories.py
+
1
−
1
View file @
ee95daff
...
...
@@ -126,5 +126,5 @@ if __name__=='__main__':
print
(
f
"
Sample for
'
{
split
}
'
split:
"
)
data_loader
=
DataLoader
(
dataset
,
batch_size
=
1
,
shuffle
=
True
)
for
data
in
data_loader
:
print
(
data
)
print
(
''
.
join
(
data
)
)
break
This diff is collapsed.
Click to expand it.
optimus/datasets/wikitext103.py
+
1
−
1
View file @
ee95daff
...
...
@@ -116,5 +116,5 @@ if __name__=='__main__':
print
(
f
"
Sample for
'
{
split
}
'
split:
"
)
data_loader
=
DataLoader
(
dataset
,
batch_size
=
1
,
shuffle
=
True
)
for
data
in
data_loader
:
print
(
data
)
print
(
''
.
join
(
data
)
)
break
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment