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
opencompass
Commits
29006e39
Unverified
Commit
29006e39
authored
Jul 17, 2023
by
Tong Gao
Committed by
GitHub
Jul 17, 2023
Browse files
[Fix] Fix circular import of PromptTemplate (#71)
parent
1e445417
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
opencompass/openicl/icl_retriever/icl_base_retriever.py
opencompass/openicl/icl_retriever/icl_base_retriever.py
+1
-1
opencompass/openicl/icl_retriever/icl_mdl_retriever.py
opencompass/openicl/icl_retriever/icl_mdl_retriever.py
+1
-1
No files found.
opencompass/openicl/icl_retriever/icl_base_retriever.py
View file @
29006e39
...
@@ -4,7 +4,7 @@ from typing import Dict, List, Optional
...
@@ -4,7 +4,7 @@ from typing import Dict, List, Optional
from
mmengine.dist
import
is_main_process
from
mmengine.dist
import
is_main_process
from
opencompass.openicl
import
PromptTemplate
from
opencompass.openicl
.icl_prompt_template
import
PromptTemplate
from
opencompass.utils.prompt
import
PromptList
from
opencompass.utils.prompt
import
PromptList
...
...
opencompass/openicl/icl_retriever/icl_mdl_retriever.py
View file @
29006e39
...
@@ -7,7 +7,7 @@ import torch
...
@@ -7,7 +7,7 @@ import torch
import
tqdm
import
tqdm
from
transformers
import
AutoModelForCausalLM
from
transformers
import
AutoModelForCausalLM
from
opencompass.openicl
import
PromptTemplate
from
opencompass.openicl
.icl_prompt_template
import
PromptTemplate
from
opencompass.openicl.icl_retriever.icl_topk_retriever
import
TopkRetriever
from
opencompass.openicl.icl_retriever.icl_topk_retriever
import
TopkRetriever
from
opencompass.openicl.utils.logging
import
get_logger
from
opencompass.openicl.utils.logging
import
get_logger
from
opencompass.registry
import
ICL_PROMPT_TEMPLATES
,
ICL_RETRIEVERS
from
opencompass.registry
import
ICL_PROMPT_TEMPLATES
,
ICL_RETRIEVERS
...
...
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