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
Megatron-LM
Commits
acaabedd
Commit
acaabedd
authored
Nov 02, 2021
by
rprenger
Browse files
Removing old comment
parent
34e07701
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
megatron/text_generation_server.py
megatron/text_generation_server.py
+0
-3
No files found.
megatron/text_generation_server.py
View file @
acaabedd
...
@@ -122,9 +122,6 @@ class MegatronGenerate(Resource):
...
@@ -122,9 +122,6 @@ class MegatronGenerate(Resource):
if
random_seed
<
0
:
if
random_seed
<
0
:
return
"random_seed must be a positive integer"
return
"random_seed must be a positive integer"
# if str(request.remote_addr) == "10.14.68.146":
# return "Too many tokens requested from this IP address. Contact Ryan Prenger rprenger@nvidia.com"
with
lock
:
# Need to get lock to keep multiple threads from hitting code
with
lock
:
# Need to get lock to keep multiple threads from hitting code
print
(
"request IP: "
+
str
(
request
.
remote_addr
))
print
(
"request IP: "
+
str
(
request
.
remote_addr
))
print
(
json
.
dumps
(
request
.
get_json
()),
flush
=
True
)
print
(
json
.
dumps
(
request
.
get_json
()),
flush
=
True
)
...
...
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