Skip to main content

HuggingFace Optimum-compatible Vulkan backend — optional grilly extension

Project description

GrillyOptimum (Alpha not production ready)

HuggingFace Optimum-compatible Vulkan backend — optional grilly extension.

Features

  • from_pretrained() — load any HF Llama model directly
  • generate() — HuggingFace-compatible generation interface
  • Pipeline integration — use with transformers.pipeline("text-generation")
  • Vulkan acceleration — native fp16 inference on RDNA2 GPUs

Quick Start

pip install grillyoptimum
from grillyoptimum import VulkanModelForCausalLM
from transformers import AutoTokenizer

model = VulkanModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")

# HF-style generation
input_ids = tokenizer.encode("Hello, world!", return_tensors="np")
output = model.generate(input_ids, max_new_tokens=100, temperature=0.7)
print(tokenizer.decode(output[0]))

# Pipeline
from grillyoptimum.pipeline import create_text_generation_pipeline
pipe = create_text_generation_pipeline("meta-llama/Llama-3.2-3B-Instruct")
result = pipe("Explain quantum computing")
print(result[0]["generated_text"])

Requirements

  • Python 3.12+
  • grilly >= 0.4.0
  • grillyinference >= 0.1.0
  • transformers

License

MIT

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

grillyoptimum-0.1.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

grillyoptimum-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grillyoptimum-0.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for grillyoptimum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f89cb417c7297e1495d5c5c9d1334dd36d87941c22f45f949eef3b1e263afa3c
MD5 518bb6c06a8a52fd10d334ae1b761ccf
BLAKE2b-256 ed560009362bfbbff45a3b7640e8961f97b99d00b5e9d0ebf0e6199382cea80d

See more details on using hashes here.

Provenance

The following attestation bundles were made for grillyoptimum-0.1.0.tar.gz:

Publisher: publish.yml on Grillcheese-AI/GrillyOptimum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: grillyoptimum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for grillyoptimum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62729e3c36ce2275c07d1251c15c689ba0c80ede80d8d1c4fda84f1a3285d23c
MD5 9458d76f824a9ba13d795e119f3cc9d6
BLAKE2b-256 5a5f646ad503cf889b25ea63693cb586539353528649ee2d0170462d4d33c1fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for grillyoptimum-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Grillcheese-AI/GrillyOptimum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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