Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DONNT MERGE: PoC for opea offline installation #550

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

RuijingGuo
Copy link

Description

PoC for opea chatqat offline installation. The PR is ONLY for PoC. The motivation is to get feedback from community. The script is RISKY to run in production.

Issues

n/a

Type of change

List the type of change like below. Please delete options that are not relevant.

  • [* ] New feature (non-breaking change which adds new functionality)

Dependencies

n/a

Tests

test chatqna

# SPDX-License-Identifier: Apache-2.0

registry=registry:5000
hf_token="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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security: don't hard-code secrets, take them as arguments, e.g. as name of file containing the token.

python3 -m venv venv
source venv/bin/activate
pip install -U "huggingface_hub[cli]"
export HF_ENDPOINT=https://hf-mirror.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be variable too.

Signed-off-by: Guo Ruijing <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants