Skip to main content

xANS-104 DataItems extractor for HuggingFace & SageMaker inference

Project description

Install

pip install xans104

Quick Start

from xans104 import load_model

MODEL_DATAITEM = "gESMyqhLntTn6zvldcUcSf0JfFpGDrQX6JKDKhKVf7k"
tokenizer, model, local_dir = load_model(MODEL_DATAITEM)
outputs = model.generate(**tokenizer("slop it", return_tensors="pt"))
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

load_model streams the .ans104 blob from https://gateway.s3-node-1.load.network, extracts it into a temporary directory and returns (tokenizer, model, path) so you can call HF APIs without handling files yourself.

License

This repository is licensed under the MIT License

Project details


Download files

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

Source Distribution

xans104-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

xans104-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file xans104-0.1.0.tar.gz.

File metadata

  • Download URL: xans104-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for xans104-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d41763cd9c32c0ae241041fe7b6a45bb08ce69033f6aa5b63e994699312895d8
MD5 ca84708884f65213e33e395d6ee13be9
BLAKE2b-256 a9c2a9c750340f56b5b48091ecda56335cf49b7c55b19b1649d8a508dbc283aa

See more details on using hashes here.

File details

Details for the file xans104-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xans104-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for xans104-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 680ba2d92f802c271e995ba1167c84a2aa6e7ed6d67e00ee6862f83ce03753a1
MD5 14af25af6aedc5d7dba9107ed68edc1b
BLAKE2b-256 e332ec9ac54d0824819a9216f6a032c3d3749b1e2265e2876b760df9b2fb6ced

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