Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
915b4652
Unverified
Commit
915b4652
authored
Jan 06, 2024
by
Camille Zhong
Committed by
GitHub
Jan 06, 2024
Browse files
[doc] Update README.md of Colossal-LLAMA2 (#5233)
* Update README.md * Update README.md
parent
d992b559
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
applications/Colossal-LLaMA-2/README.md
applications/Colossal-LLaMA-2/README.md
+2
-1
No files found.
applications/Colossal-LLaMA-2/README.md
View file @
915b4652
...
@@ -216,6 +216,7 @@ inputs = inputs.to('cuda:0')
...
@@ -216,6 +216,7 @@ inputs = inputs.to('cuda:0')
pred = model.generate(**inputs,
pred = model.generate(**inputs,
max_new_tokens=256,
max_new_tokens=256,
do_sample=True,
do_sample=True,
temperature=0.3,
top_k=50,
top_k=50,
top_p=0.95,
top_p=0.95,
num_return_sequences=1)
num_return_sequences=1)
...
@@ -238,7 +239,7 @@ generation_kwargs = {"max_new_tokens": 256,
...
@@ -238,7 +239,7 @@ generation_kwargs = {"max_new_tokens": 256,
"temperature": 0.3
"temperature": 0.3
}
}
input = '
离离原上草
,\n\n->\n\n'
input = '
明月松间照
,\n\n->\n\n'
inputs = tokenizer(input, return_token_type_ids=False, return_tensors='pt')
inputs = tokenizer(input, return_token_type_ids=False, return_tensors='pt')
inputs = inputs.to('cuda:0')
inputs = inputs.to('cuda:0')
output = model.generate(**inputs, **generation_kwargs)
output = model.generate(**inputs, **generation_kwargs)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment