Skip to main content

Blexus official package

Project description

🚀 Blexus

Welcome to Blexus, an AI innovation lab committed to crafting small, specialized AI models. Our mission is to unlock the full potential of AI through task-specific models that are fast, efficient, and highly customizable—ideal for developers, businesses, and everyday use cases. READ MORE


🛠️ Installation

You can install the Blexus package using pip. Run the following command:

pip install blexus

Use Quble models

from blexus import TextGenerator

# Define the chat template  IMPORTANT: fill in the fields!
chat_template = {
    "before_system": "",
    "after_system": "",
    "before_user": "",
    "after_user": "",
    "before_assistant": ""
}

# Load Quble model
text_generator_quble = TextGenerator()
text_generator_quble.loadQuble()

# Generate text using Quble model
user_input = "Hello, how are you?"
system_input = "You are a helpful assistant."
generated_texts_quble = text_generator_quble.useQuble(user_input, system_input, chat_template, max_length=100, temperature=0.7, num_return_sequences=1)
print("Quble generated texts:", generated_texts_quble)

# Eject Quble model when done
text_generator_quble.eject_model()


# Load FCP model from a Hugging Face path
huggingface_path = "huggingface/fcp-model-name"  # Replace with actual Hugging Face model path
text_generator_fcp = TextGenerator()
text_generator_fcp.loadFCP(huggingface_path)

# Generate text using FCP model
generated_texts_fcp = text_generator_fcp.useFCP(user_input, system_input, chat_template, max_length=100, temperature=0.7, num_return_sequences=1)
print("FCP generated texts:", generated_texts_fcp)

# Eject FCP model when done
text_generator_fcp.eject_model()

More coming soon!

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

blexus-0.0.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

blexus-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file blexus-0.0.4.tar.gz.

File metadata

  • Download URL: blexus-0.0.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for blexus-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fd1bba52dd150e5c453b7e6cbad13fe4f7256cebfa97a792b65cde1dfea2ca77
MD5 ca956af7c52c1e3aa3dfb99ffeb18ef0
BLAKE2b-256 86fcb09384c50568718f9487139c8364f00ee3a361d22a74240467558f207911

See more details on using hashes here.

File details

Details for the file blexus-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: blexus-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for blexus-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1382c95d9373462d136d57b930c75f244aa026049fae344dde1c5708ad33e0e5
MD5 28694ba7e9cc1090d562418c4385ec08
BLAKE2b-256 f7670673bef5f9370535677890e36ab8eecd3ee01b953dbb39615e490b950f14

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