capreolus-端到端神經自組織檢索工具集-Andrew Yates Quick Start Environment Variables

capreolus-端到端神經自組織檢索工具集-Andrew Yates

發佈:2020-12-23 10:46:27.088100

做者:Andrew Yates

### 做者郵箱:initial-then-last@mpi-inf.mpg.de

### 首頁:https://capreolus.ai

### 文檔:None

### 下載連接 

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Worfklow Documentation Status PyPI version fury.io Code style: black

Capreolus

Capreolus
Capreolus is a toolkit for conducting end-to-end ad hoc retrieval experiments. Capreolus provides fine control over the entire experimental pipeline through the use of interchangeable and configurable modules.html

Get started with a Notebook Open In Colabpython

Read the documentation for a detailed overview.git

Quick Start

  1. Prerequisites: Python 3.7+ and Java 11. See the installation instructions
  2. Install the pip package: pip install capreolus
  3. Train a model: capreolus rerank.traineval with benchmark.name=nf reranker.name=KNRM reranker.trainer.niters=2
  4. If the train command completed successfully, you've trained your first Capreolus reranker on NFCorpus! This command created several outputs, such as model checkpoints and TREC-format run files. To learn about these files, read about running experiments with Capreolus.
  5. To learn about different configuration options, try: capreolus rerank.print_config with benchmark.name=nf reranker.name=KNRM
  6. To learn about different modules you can use, such as reranker.name=DRMM, try: capreolus modules
  7. Learn about running experiments via the Python API

Environment Variables

Capreolus uses environment variables to indicate where outputs should be stored and where document inputs can be found. Consult the table below to determine which variables should be set. Set them either on the fly before running Capreolus (export CAPREOLUS_RESULTS=...) or by editing your shell's initialization files (e.g., ~/.bashrc or ~/.zshrc).github

| Environment Variable | Default Value | Purpose | |-------------------------------|---------------|---------| | CAPREOLUS_RESULTS | ~/.capreolus/results/ | Directory where results will be stored | | CAPREOLUS_CACHE | ~/.capreolus/cache/ | Directory used for cache files | | CUDA_VISIBLE_DEVICES | (unset) | Indicates GPUs available to PyTorch, starting from 0. For example, set to '1' the system's 2nd GPU (as numbered by nvidia-smi). Set to '' (an empty string) to force CPU.shell

Copy from pypi.org

查詢時間:8.704ms
渲染時間:8.806ms

本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。bash

相關文章
相關標籤/搜索