Skip to content

Commit

Permalink
Remove useless embedding model (#50)
Browse files Browse the repository at this point in the history
* Remove entrypoint

* Update ui

* Revert dockerfile change

* Delete debug clauses

* Fix embed dim value

* Update view model

* Fix test issue
  • Loading branch information
moria97 authored Jun 5, 2024
1 parent 1705a9f commit 1d9ecae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: registry.cn-beijing.aliyuncs.com
REGISTRY_HZ: registry.cn-hangzhou.aliyuncs.com

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand All @@ -18,15 +19,25 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- uses: aliyun/acr-login@v1
- name: Login to ACR Beijing region
uses: aliyun/acr-login@v1
with:
login-server: "https://${{ env.REGISTRY }}"
username: ${{ secrets.ACR_USER }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Login to ACR Hangzhou region
- uses: aliyun/acr-login@v1
with:
login-server: "https://${{ env.REGISTRY_HZ }}"
username: ${{ secrets.ACR_USER }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Build and push image
env:
IMAGE_TAG: pairag_0.0.1
run: |
docker build -t ${{ env.REGISTRY }}/mybigpai/aigc_apps:$IMAGE_TAG .
docker push ${{ env.REGISTRY }}/mybigpai/aigc_apps:$IMAGE_TAG
docker build -t ${{ env.REGISTRY }}/mybigpai/pairag:$IMAGE_TAG .
docker tag ${{ env.REGISTRY }}/mybigpai/pairag:$IMAGE_TAG ${{ env.REGISTRY_HZ }}/mybigpai/pairag:$IMAGE_TAG
docker push ${{ env.REGISTRY }}/mybigpai/pairag:$IMAGE_TAG
docker push ${{ env.REGISTRY_HZ }}/mybigpai/pairag:$IMAGE_TAG
1 change: 1 addition & 0 deletions src/pai_rag/app/web/tabs/settings_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def change_emb_model(model):
llm_eas_token = gr.Textbox(
label="EAS Token",
elem_id="llm_eas_token",
type="password",
)
llm_eas_model_name = gr.Textbox(
label="EAS Model name",
Expand Down
1 change: 0 additions & 1 deletion src/pai_rag/app/web/ui_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"bge-small-zh-v1.5": 1024,
"SGPT-125M-weightedmean-nli-bitfit": 768,
"text2vec-large-chinese": 1024,
"text2vec-base-chinese": 768,
"paraphrase-multilingual-MiniLM-L12-v2": 384,
}

Expand Down

0 comments on commit 1d9ecae

Please sign in to comment.