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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f89cb417c7297e1495d5c5c9d1334dd36d87941c22f45f949eef3b1e263afa3c
|
|
| MD5 |
518bb6c06a8a52fd10d334ae1b761ccf
|
|
| BLAKE2b-256 |
ed560009362bfbbff45a3b7640e8961f97b99d00b5e9d0ebf0e6199382cea80d
|
Provenance
The following attestation bundles were made for grillyoptimum-0.1.0.tar.gz:
Publisher:
publish.yml on Grillcheese-AI/GrillyOptimum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
grillyoptimum-0.1.0.tar.gz -
Subject digest:
f89cb417c7297e1495d5c5c9d1334dd36d87941c22f45f949eef3b1e263afa3c - Sigstore transparency entry: 976482761
- Sigstore integration time:
-
Permalink:
Grillcheese-AI/GrillyOptimum@684a3b28e188ca916ae9a0e1d10dda00651c8bf1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Grillcheese-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@684a3b28e188ca916ae9a0e1d10dda00651c8bf1 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62729e3c36ce2275c07d1251c15c689ba0c80ede80d8d1c4fda84f1a3285d23c
|
|
| MD5 |
9458d76f824a9ba13d795e119f3cc9d6
|
|
| BLAKE2b-256 |
5a5f646ad503cf889b25ea63693cb586539353528649ee2d0170462d4d33c1fe
|
Provenance
The following attestation bundles were made for grillyoptimum-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Grillcheese-AI/GrillyOptimum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
grillyoptimum-0.1.0-py3-none-any.whl -
Subject digest:
62729e3c36ce2275c07d1251c15c689ba0c80ede80d8d1c4fda84f1a3285d23c - Sigstore transparency entry: 976482765
- Sigstore integration time:
-
Permalink:
Grillcheese-AI/GrillyOptimum@684a3b28e188ca916ae9a0e1d10dda00651c8bf1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Grillcheese-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@684a3b28e188ca916ae9a0e1d10dda00651c8bf1 -
Trigger Event:
release
-
Statement type: