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
83bc79d6
Commit
83bc79d6
authored
Oct 26, 2021
by
rprenger
Browse files
Remove IP block
parent
9e0ee6fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
megatron/text_generation_server.py
megatron/text_generation_server.py
+2
-2
No files found.
megatron/text_generation_server.py
View file @
83bc79d6
...
...
@@ -114,8 +114,8 @@ class MegatronGenerate(Resource):
if
not
isinstance
(
stop_on_eol
,
bool
):
return
"stop_on_eol must be a boolean value"
if
str
(
request
.
remote_addr
)
==
"10.14.68.146"
:
return
"Too many tokens requested from this IP address. Contact Ryan Prenger rprenger@nvidia.com"
#
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
print
(
"request IP: "
+
str
(
request
.
remote_addr
))
...
...
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