Exa - Pytorch
Project description
Exa
Ultra-optimized fast inference library for running exascale LLMs locally on modern consumer-class GPUs.
Principles
- Radical Simplicity (Utilizing super-powerful LLMs with as minimal code as possible)
- Ultra-Optimizated (High Performance classes that extract all the power from these LLMs)
- Fludity & Shapelessness (Plug in and play and re-architecture as you please)
🤝 Schedule a 1-on-1 Session
Book a 1-on-1 Session with Kye, the Creator, to discuss any issues, provide feedback, or explore how we can improve Zeta for you.
📦 Installation 📦
You can install the package using pip
pip install exxa
Usage
Inference
from exa import Inference
model = Inference(
model_id="georgesung/llama2_7b_chat_uncensored",
quantized=True
)
model.run("What is your name")
GPTQ Inference
from exa import GPTQInference
model_id = "facebook/opt-125m"
model = GPTQInference(model_id=model_id, max_length=400)
prompt = "in a land far far away"
result = model.run(prompt)
print(result)
Quantize
from exa import Quantize
#usage
quantize = Quantize(
model_id="bigscience/bloom-1b7",
bits=8,
enable_fp32_cpu_offload=True,
)
quantize.load_model()
quantize.push_to_hub("my model")
quantize.load_from_hub('my model')
🎉 Features 🎉
-
World-Class Quantization: Get the most out of your models with top-tier performance and preserved accuracy! 🏋️♂️
-
Automated PEFT: Simplify your workflow! Let our toolkit handle the optimizations. 🛠️
-
LoRA Configuration: Dive into the potential of flexible LoRA configurations, a game-changer for performance! 🌌
-
Seamless Integration: Designed to work seamlessly with popular models like LLAMA, Falcon, and more! 🤖
💌 Feedback & Contributions 💌
We're excited about the journey ahead and would love to have you with us! For feedback, suggestions, or contributions, feel free to open an issue or a pull request. Let's shape the future of fine-tuning together! 🌱
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
File details
Details for the file exxa-0.0.9.tar.gz
.
File metadata
- Download URL: exxa-0.0.9.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c166fe335bdb05db7449d712e6ffa1893cd3c0bb63ad0ca7d1cbfe2b99c2c319 |
|
MD5 | ab1f79130acd76b958181173e36dc47b |
|
BLAKE2b-256 | 606cc1b0a91e75ad79f35334b01dca03ed894d29727d313453eb4519b8e27ad2 |
File details
Details for the file exxa-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: exxa-0.0.9-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44e524de6740dd2648c40cac5680c03a8f342894553b0898a4d2f4ea6d52ca7 |
|
MD5 | 81949804ae9adcdccfad3c9baba58ef4 |
|
BLAKE2b-256 | c0d8f4466af5edf4b9dbb85a07544a8fc62c2459adb1ed6cf9a97c91c4099963 |