Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Ialacol-build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K8s AI Models
Ialacol-build
Commits
f81a5d25
Unverified
Commit
f81a5d25
authored
1 year ago
by
Henry Chen
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for falcon model(s) (#40)
Signed-off-by:
Hung-Han (Henry) Chen
<
chenhungh@gmail.com
>
parent
e1bbb6e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/values/falcon-40b.yaml
+1
-1
1 addition, 1 deletion
examples/values/falcon-40b.yaml
examples/values/falcon-7b.yaml
+3
-1
3 additions, 1 deletion
examples/values/falcon-7b.yaml
get_llm.py
+4
-1
4 additions, 1 deletion
get_llm.py
with
8 additions
and
3 deletions
examples/values/falcon-40b.yaml
+
1
−
1
View file @
f81a5d25
...
@@ -3,7 +3,7 @@ deployment:
...
@@ -3,7 +3,7 @@ deployment:
image
:
quay.io/chenhunghan/ialacol:latest
image
:
quay.io/chenhunghan/ialacol:latest
env
:
env
:
DEFAULT_MODEL_HG_REPO_ID
:
TheBloke/WizardLM-Uncensored-Falcon-40B-GGML
DEFAULT_MODEL_HG_REPO_ID
:
TheBloke/WizardLM-Uncensored-Falcon-40B-GGML
DEFAULT_MODEL_FILE
:
wizard-falcon40b.gg
mlv3
.q4_
K_S
.bin
DEFAULT_MODEL_FILE
:
wizard
lm-uncensored
-falcon
-
40b.gg
ccv1
.q4_
0
.bin
resources
:
resources
:
{}
{}
cache
:
cache
:
...
...
This diff is collapsed.
Click to expand it.
examples/values/falcon-7b.yaml
+
3
−
1
View file @
f81a5d25
...
@@ -3,7 +3,9 @@ deployment:
...
@@ -3,7 +3,9 @@ deployment:
image
:
quay.io/chenhunghan/ialacol:latest
image
:
quay.io/chenhunghan/ialacol:latest
env
:
env
:
DEFAULT_MODEL_HG_REPO_ID
:
TheBloke/WizardLM-Uncensored-Falcon-7B-GGML
DEFAULT_MODEL_HG_REPO_ID
:
TheBloke/WizardLM-Uncensored-Falcon-7B-GGML
DEFAULT_MODEL_FILE
:
wizard-falcon-7b.ggmlv3.q4_1.bin
DEFAULT_MODEL_FILE
:
wizardlm-7b-uncensored.ggccv1.q4_0.bin
# the file name of the model file is missing `falcon` so we need to set the model type
MODE_TYPE
:
falcon
resources
:
resources
:
{}
{}
cache
:
cache
:
...
...
This diff is collapsed.
Click to expand it.
get_llm.py
+
4
−
1
View file @
f81a5d25
...
@@ -38,7 +38,10 @@ async def get_llm(
...
@@ -38,7 +38,10 @@ async def get_llm(
ctransformer_model_type
=
"
dolly-v2
"
ctransformer_model_type
=
"
dolly-v2
"
if
"
stablelm
"
in
body
.
model
:
if
"
stablelm
"
in
body
.
model
:
ctransformer_model_type
=
"
gpt_neox
"
ctransformer_model_type
=
"
gpt_neox
"
MODE_TYPE
=
get_env
(
"
MODE_TYPE
"
,
""
)
if
len
(
MODE_TYPE
)
>
0
:
ctransformer_model_type
=
MODE_TYPE
MODELS_FOLDER
=
get_env
(
"
MODELS_FOLDER
"
,
"
models
"
)
MODELS_FOLDER
=
get_env
(
"
MODELS_FOLDER
"
,
"
models
"
)
return
AutoModelForCausalLM
.
from_pretrained
(
return
AutoModelForCausalLM
.
from_pretrained
(
...
...
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