Skip to content

Qubic-Qulang/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Banner


Try the dApp and playground at http://46.17.103.110:3000/ ! You can use a private seed such as kexrupgtmbmwwzlcpqccemtgvolpzqezybmgaedaganynsnjijfyvcn.

QuLang brings together AI builders across the Qubic blockchain. Its goal is to enable decentralized inference of Large Language Models (LLMs) and AI Agents. Here's how it works:

  • Users can top up their QuLang accounts through the smart contract (procedure TopUp, 1) and withdraw their balance using the same mechanism (procedure Withdraw, 2).

  • Providers can register endpoints for LLM inference following the Vercel AI SDK UI standard (an example is available in the example-openai-provider repository). The endpoints are stored in a centralized PostgreSQL database, while pricing (input token price, output token price) and burn rate parameters are managed by the smart contract (procedure updateProvider, 3).

  • Inference transactions are validated through a main endpoint. Users with sufficient QuLang balances are debited an amount calculated by:

$$ D = n_{\text{input token}} \times p_{\text{input token}} + n_{\text{output token}} \times p_{\text{output token}} $$

The AI provider receives a credit of $D \times (1 - r_{\text{burn}})$, and the remaining amount $r_{\text{burn}} \times D$ is either burned or credited to the contract’s shares.

Important note: Some features, particularly security measures and exception handling, are not yet fully developed.

Projects

1. core (Node and Smart Contract)

A fork of the Qubic node with our smart contract implementation.

2. qulang-app (Main dApp)

3. example-openai-provider

This Next.js application demonstrates how AI providers can register with the QuLang marketplace. The API exposes model details (provider name, image, and description) via environment variables. It also includes a playground chatbot interface for easy testing and debugging of AI inference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •