Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gpt-2-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Geisler
gpt-2-server
Commits
0aad2ab3
Commit
0aad2ab3
authored
6 years ago
by
Mathieu Rene
Committed by
Jeff Wu
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fetch model using curl, add shebang to download_files.sh and mark it executable
parent
2d0b6222
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
download_model.sh
+5
-1
5 additions, 1 deletion
download_model.sh
with
6 additions
and
2 deletions
README.md
+
1
−
1
View file @
0aad2ab3
...
@@ -8,7 +8,7 @@ See more details in our [blog post](https://blog.openai.com/better-language-mode
...
@@ -8,7 +8,7 @@ See more details in our [blog post](https://blog.openai.com/better-language-mode
## Installation
## Installation
Download the model data
(needs
[
gsutil
](
https://cloud.google.com/storage/docs/gsutil_install
)
):
Download the model data
```
```
sh download_model.sh 117M
sh download_model.sh 117M
```
```
...
...
This diff is collapsed.
Click to expand it.
download_model.sh
100644 → 100755
+
5
−
1
View file @
0aad2ab3
#!/bin/sh
if
[
"$#"
-ne
1
]
;
then
if
[
"$#"
-ne
1
]
;
then
echo
"You must enter the model name as a parameter, e.g.: sh download_model.sh 117M"
echo
"You must enter the model name as a parameter, e.g.: sh download_model.sh 117M"
exit
1
exit
1
...
@@ -9,5 +11,7 @@ mkdir -p models/$model
...
@@ -9,5 +11,7 @@ mkdir -p models/$model
# TODO: gsutil rsync -r gs://gpt-2/models/ models/
# TODO: gsutil rsync -r gs://gpt-2/models/ models/
for
filename
in
checkpoint encoder.json hparams.json model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta vocab.bpe
;
do
for
filename
in
checkpoint encoder.json hparams.json model.ckpt.data-00000-of-00001 model.ckpt.index model.ckpt.meta vocab.bpe
;
do
gsutil
cp
gs://gpt-2/models/
$model
/
$filename
models/
$model
fetch
=
$model
/
$filename
echo
"Fetching
$fetch
"
curl
--output
models/
$fetch
https://storage.googleapis.com/gpt-2/models/
$fetch
done
done
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