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
ModelZoo
FinGPT-glm_pytorch
Commits
5880e08c
Commit
5880e08c
authored
May 10, 2024
by
wanglch
Browse files
Update infernece_FinGPT.py
parent
e9a3ef66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
infernece_FinGPT.py
infernece_FinGPT.py
+1
-1
No files found.
infernece_FinGPT.py
View file @
5880e08c
...
...
@@ -5,7 +5,7 @@ from transformers import AutoTokenizer, AutoModel
import
readline
base_model
=
'
/home/wanglch/projects
/FinGPT/FinGPT_mt_chatglm2-6b-merged'
base_model
=
'
..
/FinGPT/FinGPT_mt_chatglm2-6b-merged'
tokenizer
=
AutoTokenizer
.
from_pretrained
(
base_model
,
trust_remote_code
=
True
)
model
=
AutoModel
.
from_pretrained
(
base_model
,
trust_remote_code
=
True
,
device_map
=
"auto"
)
...
...
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