Skip to main content

unofficial-ascend-tools

Project description

Ascend NPU accelerate Embedding model

Please ensure that you haved installed CANN and torch_npu.

Example:

  1. source the environment
source /usr/local/Ascend/ascend-toolkit/env.sh
  1. install torch and torch_npu

  2. now use like bellow

from unofficial_ascend_tools.embeddings import AscendEmbeddings
model = AscendEmbeddings(model_path=<path_to_model>,
    device_id=0,
    query_instruction="Represend this sentence for searching relevant passages: "
)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

unofficial_ascend_tools-0.0.5.post5-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file unofficial_ascend_tools-0.0.5.post5-py3-none-any.whl.

File metadata

File hashes

Hashes for unofficial_ascend_tools-0.0.5.post5-py3-none-any.whl
Algorithm Hash digest
SHA256 acbf3808048f3239f65952f5ae302efd4fde52ada3adce47033926d0b0d5fa8d
MD5 e4d7abf4f1fb1991eeaf85bbb32650af
BLAKE2b-256 b624c1ac19875c22ed1aa962a7f9017205f8475eb0e75a2a4613406b2a3e81c7

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