Skip to main content

cli

Project description

ANC CLI Tool

Overview

The ANC CLI tool is a comprehensive command line interface designed to facilitate the management of various resources within the company. Initially, it supports managing datasets and their versions, enabling users to interact seamlessly with a remote server for fetching, listing, and adding datasets.

Installation

For User

# Instructions for installing the ANC CLI tool
sudo pip install anc

For cli Develop

# Instructions for installing the ANC CLI tool
cd dev/cli
sudo pip install -r requirements.txt
sudo pip install -e .

Dataset

  • Fetch Datasets: Retrieve specific versions of datasets from a remote server.
  • List Versions: View all available versions of a dataset.
  • Add Datasets: Upload new datasets along with their versions and descriptions to the remote server.

Usage

list

anc ds list 
# Or you can specify a dataset name.
anc ds list -n <dataset name>

get

# According to the above list result, you can download the specific version dataset.
# Ensure that the destination path for downloads is a permanent storage location(e.g. /mnt/weka/xxx). Currently, downloading data to local storage is not permitted.
anc ds get cifar-10-batches-py -v 1.0

add

# Upload a specific version of a dataset. The dataset name will be determined based on the file or folder name extracted from the specified path.
# Ensure that the dataset is stored in a permanent location recognized by the server (e.g., /mnt/weka/xxx).
anc ds add /mnt/weka/xug/dvc_temp/cifar-10-batches-py -v 1.0

load-test

Usage

load testing with random data

# install vllm first(skip if you have, this step will be done inside cli tool in future)
pip install vllm

# start vllm server (this step will be done inside cli tool in future)
python -m vllm.entrypoints.openai.api_server --model=facebook/opt-125m

# load testing running
anc loadtest --backend vllm --model facebook/opt-125m --dataset-name random --profile --num-prompts 2

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anc-0.3.18.tar.gz (42.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anc-0.3.18-py3-none-any.whl (51.8 kB view details)

Uploaded Python 3

File details

Details for the file anc-0.3.18.tar.gz.

File metadata

  • Download URL: anc-0.3.18.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.12 Linux/5.15.0-1053-nvidia

File hashes

Hashes for anc-0.3.18.tar.gz
Algorithm Hash digest
SHA256 9233c5a69ae1ec71f1fb45715de72a2ea068157a8a390a2878853bda4e6623ed
MD5 1d4d74541431f7b18c39b329ffb21311
BLAKE2b-256 a7b131fb214bbbaa15337cd7cfa308eb7ed57b0715b00d2ee9118f5a83d002d8

See more details on using hashes here.

File details

Details for the file anc-0.3.18-py3-none-any.whl.

File metadata

  • Download URL: anc-0.3.18-py3-none-any.whl
  • Upload date:
  • Size: 51.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.12 Linux/5.15.0-1053-nvidia

File hashes

Hashes for anc-0.3.18-py3-none-any.whl
Algorithm Hash digest
SHA256 502eab514e717c459c101ee19e460990ea9b506f8cb4931ffbbe2a308b5c426b
MD5 3419f2420ab09cc334005c2c1afa4372
BLAKE2b-256 b3c649726b468a0a0f715f6fa5920b699a6eb2e5fb61fd79179aa07e424e6d3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page