Skip to main content

Check Python version

N.B: python version must be required up to 3.10.0

!python --version

Install dependencies of Astra LLM

pip install astra-llm==0.1.19

Load Model

Selection of device for load model

import torch

# Set device to GPU if available
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

Load model

from astra.model import Model

model = Model('/kaggle/input/astra/pytorch/1.4b/2', map_location=device)

Generate text

response = model.generate(
    messages="hello",
    max_new_tokens=50,
    top_k=25,
    temperature=1.4
)

Metadata

Release files for astra-llm 0.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astra-llm 0.1.21
File Size Uploaded Provenance
astra-llm-0.1.21.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for astra-llm 0.1.21
File Interpreter ABI Platform
astra_llm-0.1.21-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / astra-llm-0.1.21.tar.gz

Download URL astra-llm-0.1.21.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dfae4083b4433d79a044400ed7ca97f291ac63fba6b2f9621c1854ee540a1903
BLAKE2b-256 checksum
How to use checksums
5246dfcfce110393f7a49376ff3a2447cbf2cf6a69ad6cc75b7267fe9a8f165e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release files / astra_llm-0.1.21-py3-none-any.whl

Download URL astra_llm-0.1.21-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acd3c95654d8043c999a9f34ba4fb36ef97c2988ae6c287155cba39067505edd
BLAKE2b-256 checksum
How to use checksums
9f8160d08b161fb2819c7956d139289db59ddbd56529142e0d632fd1825f62eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Security for astra-llm 0.1.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page