Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
Hydra Node Http
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Hydra Node Http
Commits
ee2f2749
Commit
ee2f2749
authored
Aug 26, 2022
by
kurumuz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ds=false, dont use ds for now
parent
ab15211e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+2
-2
hydra_node/models.py
hydra_node/models.py
+1
-1
No files found.
Dockerfile
View file @
ee2f2749
FROM
nvidia/cuda:11.3.1-
runtim
e-ubuntu20.04
FROM
nvidia/cuda:11.3.1-
bas
e-ubuntu20.04
ENV
DEBIAN_FRONTEND=noninteractive
#Install core packages
...
...
@@ -26,7 +26,7 @@ RUN pip3 install -e stable-diffusion-private-hypernets/.
RUN
pip3
install
https://github.com/crowsonkb/k-diffusion/archive/481677d114f6ea445aa009cf5bd7a9cdee909e47.zip
RUN
pip3
install
simplejpeg
RUN
pip3
install
min-dalle
RUN
pip3
install
https://github.com/microsoft/DeepSpeed/archive/55b7b9e008943b8b93d4903d90b255313bb9d82c.zip
#
RUN pip3 install https://github.com/microsoft/DeepSpeed/archive/55b7b9e008943b8b93d4903d90b255313bb9d82c.zip
RUN
pip3
install
https://www.dropbox.com/s/4zq3vq04e79flyh/basedformer-main.zip?dl
=
1
#Open ports
...
...
hydra_node/models.py
View file @
ee2f2749
...
...
@@ -581,5 +581,5 @@ class BasedformerModel(nn.Module):
prompt
=
request
.
prompt
prompt
=
self
.
tokenizer
.
encode
(
"Input: "
+
prompt
,
return_tensors
=
'pt'
)
.
cuda
()
.
long
()
prompt
=
torch
.
cat
([
prompt
,
torch
.
tensor
([[
49527
]],
dtype
=
torch
.
long
)
.
cuda
()],
dim
=
1
)
is_safe
,
corrected
=
generate
(
self
.
model
.
module
,
prompt
,
self
.
tokenizer
,
tokens_to_generate
=
150
,
ds
=
Tru
e
)
is_safe
,
corrected
=
generate
(
self
.
model
,
prompt
,
self
.
tokenizer
,
tokens_to_generate
=
150
,
ds
=
Fals
e
)
return
is_safe
,
corrected
\ No newline at end of file
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