Skip to content

Commit

Permalink
モデル軽量化
Browse files Browse the repository at this point in the history
  • Loading branch information
kaminuma committed Dec 9, 2024
1 parent 20741b8 commit c015ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_app():
try:
app.config['NLI_PIPELINE'] = pipeline(
"zero-shot-classification",
model="joeddav/xlm-roberta-large-xnli",
model="xlm-roberta-base",
device=0 if torch.cuda.is_available() else -1 # GPUが利用可能な場合はGPUを使用
)
logging.debug("AIモデルの初期化に成功しました。")
Expand Down

0 comments on commit c015ac5

Please sign in to comment.