(merlin_worker.zsh): update proxy configuration to include new internal and external mirrors, and add aliases for easier endpoint management

This commit is contained in:
Frank Qing
2025-05-28 14:37:27 +08:00
parent bff631f971
commit 18a56766c6

View File

@@ -1,9 +1,16 @@
# proxy
export HF_ENDPOINT=http://huggingface-proxy-sg.byted.org
# huggingface proxy
export HF_NETWORK_PROXY=http://huggingface-proxy-sg.byted.org
export HF_MIRROR_INTERNAL=http://huggingface-mirror.bytedance.net
export HF_MIRROR_EXTERNAL=https://hf-mirror.com
export HF_ENDPOINT=$HF_NETWORK_PROXY
alias hf_network_proxy='export HF_ENDPOINT=$HF_NETWORK_PROXY'
alias hf_mirror_internal='export HF_ENDPOINT=$HF_MIRROR_INTERNAL'
alias hf_mirror_external='export HF_ENDPOINT=$HF_MIRROR_EXTERNAL'
# http proxy
export http_proxy=http://sys-proxy-rd-relay.byted.org:8118
export https_proxy=http://sys-proxy-rd-relay.byted.org:8118
export no_proxy=byted.org
alias proxy_on='export http_proxy=http://sys-proxy-rd-relay.byted.org:8118; export https_proxy=http://sys-proxy-rd-relay.byted.org:8118; export no_proxy=byted.org'
alias proxy_off='unset http_proxy; unset https_proxy; unset no_proxy'