This commit is contained in:
2025-11-05 21:47:16 +09:00
parent 1a70c1c51e
commit 6573fc20a4

View File

@@ -1,6 +1,6 @@
from sentence_transformers import SentenceTransformer from sentence_transformers import SentenceTransformer
model = SentenceTransformer('all-MiniLM-L6-v2') model = SentenceTransformer('all-MiniLM-L6-v2')
model.save('./all-MiniLM-L6-v2') model.save('./models/all-MiniLM-L6-v2')
# # HF CLI 설치 (처음 한 번만) # # HF CLI 설치 (처음 한 번만)
# pip install huggingface_hub # pip install huggingface_hub
@@ -9,7 +9,7 @@ model.save('./all-MiniLM-L6-v2')
# huggingface-cli login # 토큰 입력 (https://huggingface.co/settings/tokens) # huggingface-cli login # 토큰 입력 (https://huggingface.co/settings/tokens)
# #
# # 모델 로컬 저장 # # 모델 로컬 저장
# huggingface-cli download Qwen/Qwen3-0.6B --local-dir ./Qwen3-0.6B --local-dir-use-symlinks False # huggingface-cli download Qwen/Qwen3-0.6B --local-dir ./models/Qwen3-0.6B --local-dir-use-symlinks False
# #
# #
# #