<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Crynux Blog]]></title><description><![CDATA[Decentralized AI Infrastructure for Everyone]]></description><link>https://blog.crynux.io/</link><image><url>https://blog.crynux.io/favicon.png</url><title>Crynux Blog</title><link>https://blog.crynux.io/</link></image><generator>Ghost 5.49</generator><lastBuildDate>Sat, 22 Aug 2026 21:51:29 GMT</lastBuildDate><atom:link href="https://blog.crynux.io/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys]]></title><description><![CDATA[<p>Diffusion models are a powerful class of AI models for generating images from text prompts. However, its true creative potential is unlocked through fine-tuning. Fine-tuning allows you to adapt the base model to generate images in a highly specific style, or to consistently depict a particular character or object. By</p>]]></description><link>https://blog.crynux.io/decentralized-ai-power-up-fine-tuning-custom-ai-models-with-crynux-and-irys/</link><guid isPermaLink="false">686f757c11ee42000114dcd8</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Thu, 10 Jul 2025 09:43:46 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2025/07/naruto-cross.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2025/07/naruto-cross.jpg" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys"><p>Diffusion models are a powerful class of AI models for generating images from text prompts. However, its true creative potential is unlocked through fine-tuning. Fine-tuning allows you to adapt the base model to generate images in a highly specific style, or to consistently depict a particular character or object. By training the model on a curated dataset&#x2014;even a small one&#x2014;you can create a specialized model that produces results aligned with your unique vision. This process makes AI art creation more accessible, enabling artists, developers, and enthusiasts to craft bespoke visual content without the need to train a massive model from the ground up.</p><p>However, the conventional fine-tuning process presents significant hurdles that can make it inaccessible for many. It often demands access to expensive, high-performance GPUs, which are frequently in short supply and costly to rent from centralized cloud providers. Beyond the hardware costs, setting up and maintaining the correct software environment&#x2014;with specific drivers and library versions&#x2014;can be a complex and time-consuming task. Furthermore, ensuring the reproducibility of the training process and the integrity of the final model can be challenging in a traditional setup. These challenges highlight the need for a more accessible and robust infrastructure for AI development.</p><h2 id="solving-the-challenge-with-crynux-and-irys">Solving the Challenge with Crynux and Irys</h2><p>Crynux is a decentralized AI network that empowers users to fine-tune AI models like Diffusion models by tapping into a global network of GPU providers. It operates on a permissionless and trustless architecture, where tasks are distributed among multiple nodes that execute the computation.</p><p>For developers, this means there is no need to set up and maintain complex software environments. You simply define your fine-tuning task and submit it to the network, where nodes handle all the underlying dependencies and execution. This opens up access to AI model training, allowing anyone to train their own models without needing powerful and expensive hardware, all while ensuring transparency and reliability through its decentralized design.</p><p><a href="https://irys.xyz/?ref=blog.crynux.io">Irys</a> provides the data layer for the decentralized web. For AI model fine-tuning, the integrity and perpetual availability of the dataset are paramount. Irys addresses this with its specialized datachain, a blockchain optimized for affordable and immutable data storage. By hosting the training dataset on Irys, developers ensure that their data is permanently stored, tamper-proof, and globally accessible.</p><p>When a fine-tuning task is initiated on Crynux, the Crynux nodes can seamlessly and reliably retrieve the dataset from Irys, guaranteeing a consistent and reproducible training process. This combination of decentralized computation from Crynux and decentralized data from Irys creates a robust, end-to-end solution for trustless AI model development.</p><h2 id="example-creating-a-naruto-style-image-generation-model">Example: Creating a Naruto-Style Image Generation Model</h2><p>In this blog post, we&apos;ll walk through a practical example of fine-tuning a Diffusion model to generate images in a specific artistic style. We will use a dataset of images from the popular anime series Naruto. By fine-tuning the model on this dataset, we will create a LoRA (Low-Rank Adaptation) model capable of producing new images that capture the unique visual essence of Naruto. This example will showcase how you can leverage Crynux and Irys to create your own specialized image generation models.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2025/07/naruto_grid.png" class="kg-image" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys" loading="lazy" width="2000" height="1334" srcset="https://blog.crynux.io/content/images/size/w600/2025/07/naruto_grid.png 600w, https://blog.crynux.io/content/images/size/w1000/2025/07/naruto_grid.png 1000w, https://blog.crynux.io/content/images/size/w1600/2025/07/naruto_grid.png 1600w, https://blog.crynux.io/content/images/2025/07/naruto_grid.png 2126w" sizes="(min-width: 720px) 720px"><figcaption>Naruto-style images</figcaption></figure><h3 id="step-1-prepare-the-dataset">Step 1: Prepare the Dataset</h3><p>Our first step is to prepare the training data. For this Naruto example, our dataset comes from the open <a href="https://huggingface.co/datasets/lambdalabs/naruto-blip-captions?ref=blog.crynux.io">Naruto dataset provided by Lambda Labs</a>. This dataset is stored in Apache Arrow format (.arrow files), which contains a single table with two columns: a column of PIL Image objects in JPEG format and another column of string captions corresponding to the images.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2025/07/dataset.png" class="kg-image" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys" loading="lazy" width="666" height="262" srcset="https://blog.crynux.io/content/images/size/w600/2025/07/dataset.png 600w, https://blog.crynux.io/content/images/2025/07/dataset.png 666w"><figcaption>The training dataset</figcaption></figure><p>First of all we need to upload the dataset to Irys. This action gives us a unique Irys data link, which points to our immutable dataset. We can achieve it using the Irys SDK:</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2025/07/upload_dataset.png" class="kg-image" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys" loading="lazy" width="1858" height="1080" srcset="https://blog.crynux.io/content/images/size/w600/2025/07/upload_dataset.png 600w, https://blog.crynux.io/content/images/size/w1000/2025/07/upload_dataset.png 1000w, https://blog.crynux.io/content/images/size/w1600/2025/07/upload_dataset.png 1600w, https://blog.crynux.io/content/images/2025/07/upload_dataset.png 1858w" sizes="(min-width: 720px) 720px"><figcaption>Upload the dataset to Irys Network</figcaption></figure><p>For more details on managing your data with Irys, please refer to their official documentation:</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://docs.irys.xyz/build/d/quickstart?ref=blog.crynux.io"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Irys | Irys SDK</div><div class="kg-bookmark-description"></div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://docs.irys.xyz/favicon.ico" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys"><span class="kg-bookmark-author">Irys SDK</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://docs.irys.xyz/opengraph-image.png?8c892bc9b92ee1a8" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys"></div></a></figure><h3 id="step-2-run-the-fine-tuning-task">Step 2: Run the Fine-Tuning Task</h3><p>With our dataset ready on Irys, we can now tell the Crynux Network to start fine-tuning. The process is surprisingly simple. As you can see from the Python code below, you don&apos;t need to handle complex blockchain transactions or wallet signatures. It&apos;s all done through straightforward API calls, much like interacting with any modern web service.</p><figure class="kg-card kg-code-card"><pre><code class="language-python">import time

import httpx

client = httpx.Client(
    base_url=&quot;https://bridge.crynux.io&quot;,
    timeout=180,
)

# For public demonstration only, strict rate limit applied.
api_key = &quot;q3hXHA_8O0LuGJ1_tou4_KamMlQqAo-aYwyAIDttdmI=&quot;

data = {
    &quot;model_name&quot;: &quot;crynux-ai/stable-diffusion-v1-5&quot;,
    &quot;model_variant&quot;: &quot;fp16&quot;,
    &quot;dataset_url&quot;: &quot;https://gateway.irys.xyz/DLsfGoiehnzpGNdsQ3XPEaVL9D9HNELGjL3yxsj67SUK&quot;,
    &quot;validation_num_images&quot;: 4,
    &quot;learning_rate&quot;: 0.0001,
    &quot;batch_size&quot;: 1,
    &quot;num_train_steps&quot;: 100,
    &quot;max_train_steps&quot;: 200,
    &quot;lr_scheduler&quot;: &quot;cosine&quot;,
    &quot;lr_warmup_steps&quot;: 0,
    &quot;rank&quot;: 4,
    &quot;init_lora_weights&quot;: &quot;gaussian&quot;,
    &quot;target_modules&quot;: [&quot;to_k&quot;, &quot;to_q&quot;, &quot;to_v&quot;, &quot;to_out.0&quot;],
    &quot;center_crop&quot;: True,
    &quot;random_flip&quot;: True,
    &quot;mixed_precision&quot;: &quot;fp16&quot;,
    &quot;seed&quot;: 42,
    &quot;timeout&quot;: 1800,
}

header = {
    &quot;Authorization&quot;: f&quot;Bearer {api_key}&quot;,
}
resp = client.post(
    &quot;/v1/images/models&quot;,
    json=data,
    headers=header,
    timeout=180,
)
resp.raise_for_status()
res = resp.json()
data = res[&quot;data&quot;]
task_id = data[&quot;id&quot;]
print(f&quot;Task ID: {task_id}&quot;)

success = False
while True:
    resp = client.get(
        f&quot;/v1/images/models/{task_id}/status&quot;,
    )
    resp.raise_for_status()
    res = resp.json()
    data = res[&quot;data&quot;]
    status = data[&quot;status&quot;]
    if status == &quot;success&quot;:
        print(f&quot;Task success&quot;)
        success = True
        break
    elif status == &quot;failed&quot;:
        print(f&quot;Task failed&quot;)
        success = False
        break
    elif status == &quot;running&quot;:
        print(f&quot;Task is still running&quot;)
    time.sleep(60)

if success:
    with client.stream(
        &quot;GET&quot;,
        f&quot;/v1/images/models/{task_id}/result&quot;,
        headers=header,
        timeout=180,
    ) as resp:
        resp.raise_for_status()
        with open(&quot;result.zip&quot;, &quot;wb&quot;) as f:
            for data in resp.iter_bytes():
                f.write(data)

    print(&quot;Task completed&quot;)</code></pre><figcaption>The complete code of the fine-tuning task</figcaption></figure><p>In the code, we simply pass the Irys link to our dataset in the <code>dataset_url</code> parameter. Submitting the task sends it to the Crynux Network, where it is distributed to a group of decentralized nodes. Each node then independently downloads the dataset from Irys using the provided link and begins the fine-tuning computation.</p><p>Executing the script returns a unique Task ID for the job. The script then periodically checks the status of this task until it&apos;s successfully completed.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2025/07/terminal_new.jpg" class="kg-image" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys" loading="lazy" width="958" height="557" srcset="https://blog.crynux.io/content/images/size/w600/2025/07/terminal_new.jpg 600w, https://blog.crynux.io/content/images/2025/07/terminal_new.jpg 958w" sizes="(min-width: 720px) 720px"><figcaption>Execution of the fine-tuning task on Crynux Network</figcaption></figure><p>Once the fine-tuning is complete, the script automatically downloads the resulting LoRA model, a single zip file containing the learned Naruto style.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2025/07/result_files-1.png" class="kg-image" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys" loading="lazy" width="1126" height="652" srcset="https://blog.crynux.io/content/images/size/w600/2025/07/result_files-1.png 600w, https://blog.crynux.io/content/images/size/w1000/2025/07/result_files-1.png 1000w, https://blog.crynux.io/content/images/2025/07/result_files-1.png 1126w" sizes="(min-width: 720px) 720px"><figcaption>Content of the zip file of the resulting model</figcaption></figure><h3 id="step-3-generate-images-using-the-lora-model">Step 3: Generate Images using the LoRA Model</h3><p>Now for the fun part! With the trained LoRA model file, you can start generating your own Naruto-style images. You can load this file into a local tool like the Stable Diffusion WebUI, or even use the Crynux Network again to generate images through its API.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2025/07/sd_webui.png" class="kg-image" alt="Decentralized AI Power-Up: Fine-tuning Custom AI Models with Crynux and Irys" loading="lazy" width="1858" height="1080" srcset="https://blog.crynux.io/content/images/size/w600/2025/07/sd_webui.png 600w, https://blog.crynux.io/content/images/size/w1000/2025/07/sd_webui.png 1000w, https://blog.crynux.io/content/images/size/w1600/2025/07/sd_webui.png 1600w, https://blog.crynux.io/content/images/2025/07/sd_webui.png 1858w" sizes="(min-width: 720px) 720px"><figcaption>Generating images using the model in Stable Diffusion WebUI</figcaption></figure><p>This completes our example of creating a fine-tuned LoRA model using Crynux and Irys.</p><h2 id="learn-more">Learn More</h2><p>To dive deeper into the technical details of fine-tuning on Crynux, check out the official documentation:</p><p><a href="https://docs.crynux.io/application-development/how-to-finetune-a-stable-diffusion-model-using-crynux-network?ref=blog.crynux.io">How to Fine-tune a Stable Diffusion Model using Crynux Network</a></p><p>Beyond fine-tuning, the Crynux Network also supports running a wide range of popular Large Language Models (LLMs) through an OpenAI-compliant API, making it compatible with most mainstream libraries and frameworks.</p><p><a href="https://docs.crynux.io/application-development/how-to-run-llm-using-crynux-network?ref=blog.crynux.io">How to Run LLM using Crynux Network</a></p><p>You can also use the Crynux Network API to generate images:</p><p><a href="https://docs.crynux.io/application-development/crynux-bridge?ref=blog.crynux.io">How to Generate Images using Crynux Network</a></p><p>Have a GPU sitting idle? You can also contribute to the network and earn token rewards by running a Crynux Node in a single click.</p><p><a href="https://docs.crynux.io/node-hosting/start-a-node?ref=blog.crynux.io">Start a Crynux Node</a></p><p>Join the Crynux community on Discord to get instant tech support and connect with developers and other users:</p><p><a href="https://discord.gg/JPpN4RNdqA?ref=blog.crynux.io">Crynux Discord</a></p><p>Follow Crynux on X for the latest news and updates:</p><p><a href="https://x.com/crynuxio?ref=blog.crynux.io">https://x.com/crynuxio</a></p>]]></content:encoded></item><item><title><![CDATA[Supercharge the NEAR Ecosystem: Run a Crynux Node Today!]]></title><description><![CDATA[<p>Hey NEAR Community!</p><p>Get ready to level up your contribution to the decentralized web! We&apos;re thrilled to announce the release of Crynux Node v2.5.0, a massive upgrade to support NEARverse. If you&apos;re looking for a way to actively participate in the NEAR ecosystem and</p>]]></description><link>https://blog.crynux.io/supercharge-the-near-ecosystem-run-a-crynux-node-today/</link><guid isPermaLink="false">6812f09bcbb83400013b2209</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Thu, 01 May 2025 04:00:21 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2025/05/crynux_on_near.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2025/05/crynux_on_near.jpg" alt="Supercharge the NEAR Ecosystem: Run a Crynux Node Today!"><p>Hey NEAR Community!</p><p>Get ready to level up your contribution to the decentralized web! We&apos;re thrilled to announce the release of Crynux Node v2.5.0, a massive upgrade to support NEARverse. If you&apos;re looking for a way to actively participate in the NEAR ecosystem and earn rewards, now is the perfect time to spin up a Crynux node!</p><p><strong>What&apos;s Crynux and Why You Should Care:</strong></p><p>Crynux is a distributed orchestration layer on edge devices. It means you can leverage the power of your own computer to provide AI services and get rewarded for it! But what makes Crynux truly special?</p><ul><li><strong>Permissionless</strong>: Forget applications and waitlists! Anyone with a device can join the Crynux network <em>right now</em>. It&apos;s truly open and accessible to everyone in our NEAR family.</li><li><strong><strong><strong>Serverless: </strong></strong></strong>Unlike traditional AI services relying on massive cloud infrastructure, Crynux runs entirely on the collective power of community-owned devices. Your contribution directly fuels the network!</li><li><strong>Trustles</strong>s: Crynux uses a trustless protocol to manage AI tasks without the need for traditional validators. Instead, it incentivizes node operators like you with proof of meaningful work.</li><li><strong><strong><strong>Economical efficiency: </strong></strong></strong>By tapping into the underutilized power of edge devices, Crynux can offer AI task execution at a fraction of the cost &#x2013; sometimes as low as 5% compared to traditional cloud providers!</li><li><strong><strong><strong>Computational efficiency: </strong></strong></strong>Crynux can intelligently distribute tasks across hundreds of devices with elastic deployment.</li><li><strong>Robustness</strong>: Worried about accuracy? Crynux employs a robust verification system called <a href="https://docs.crynux.ai/system-design/verifiable-secret-sampling?ref=blog.crynux.io">VssML (Verifiable Secret Sampling)</a> to ensure the integrity of results, harnessing the community&apos;s power while preventing fraud.<a href="https://docs.crynux.ai/system-design/verifiable-secret-sampling?ref=blog.crynux.io"> </a></li><li><strong><strong><strong>Scalability: </strong></strong></strong>The beauty of Crynux lies in its ability to scale to potentially billions of nodes without incurring massive overhead. As our NEAR community grows, so does the potential of Crynux to offer affordable AI services.</li></ul><p><strong>Ready to Dive In? Setting Up Your Crynux Node is a Breeze!</strong></p><p>Getting your Crynux Node v2.5.0 up and running is surprisingly simple. We&apos;ve created a comprehensive guide to walk you through every step:</p><p><a href="https://docs.crynux.ai/node-hosting/start-a-node?ref=blog.crynux.io">https://docs.crynux.ai/node-hosting/start-a-node</a></p><p>Whether you&apos;re running Windows, Linux, or Mac, you can start contributing with just a few clicks:</p><ol><li><strong>Download the Node App</strong>: Get the Crynux Node application for your operating system.</li><li><strong>Create Your Wallet</strong>: Open the app and create a new wallet. Crucially, make sure to securely store your private and public keys!</li><li><strong>Join the Crynux Discord</strong>: Head over to<a href="https://discord.gg/JPpN4RNdqA?ref=blog.crynux.io"> https://discord.gg/JPpN4RNdqA</a> and register your wallet for test tokens.</li><li><strong>Get Your Test Tokens</strong>: Once you&apos;ve registered your wallet, you&apos;ll receive test tokens to get started.</li><li><strong>Wait for Model Download</strong>: The node will automatically download the necessary AI models.</li></ol><p><strong>Join the Crynux Network and Empower NEAR!</strong></p><p>By running a Crynux node, you&apos;re not just earning rewards &#x2013; you&apos;re actively contributing to the growth and resilience of the NEAR ecosystem. Your node plays a vital role in powering decentralized AI computations and strengthening the network for everyone.</p><p>We wholeheartedly encourage every member of the NEAR community to explore this incredible opportunity and become a part of the Crynux revolution. Let&apos;s work together to build a more powerful, efficient, and truly decentralized future!</p><p><strong>Have questions or need support?</strong></p><p>Don&apos;t hesitate to reach out to the Crynux team through their community channels. We are always happy to help!</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://discord.gg/JPpN4RNdqA?ref=blog.crynux.io"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Join the Crynux #DeAI Discord Server!</div><div class="kg-bookmark-description">Built by ex-Google engineers, Crynux is pioneering decentralized AI infrastructure from the ground up. | 1147 members</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://discord.gg/assets/favicon.ico" alt="Supercharge the NEAR Ecosystem: Run a Crynux Node Today!"><span class="kg-bookmark-author">Discord</span></div></div></a></figure><p><strong>Follow Crynux on X for more updates and announcements:</strong></p><p><a href="https://x.com/crynuxai?ref=blog.crynux.io">https://x.com/crynuxai</a></p>]]></content:encoded></item><item><title><![CDATA[[Bittensor x Crynux] Creative Content Revolution: the Federated Fine-tuning Subnet]]></title><description><![CDATA[<p>Videos, music, images and text, generative multi-modality models are revolutionizing the way we create content. These advanced tools are not only incredibly useful but are also pioneering new avenues in creative content production, significantly reducing the workload involved. </p><p>For instance, consider a music generation model capable of composing chiptune pieces</p>]]></description><link>https://blog.crynux.io/bittensor-x-crynux-creative-content-revolution-the-federated-fine-tuning-subnet/</link><guid isPermaLink="false">66ea3efb0da5ac0001c175fd</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Wed, 18 Sep 2024 12:35:12 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2024/09/btncnx.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2024/09/btncnx.png" alt="[Bittensor x Crynux] Creative Content Revolution: the Federated Fine-tuning Subnet"><p>Videos, music, images and text, generative multi-modality models are revolutionizing the way we create content. These advanced tools are not only incredibly useful but are also pioneering new avenues in creative content production, significantly reducing the workload involved. </p><p>For instance, consider a music generation model capable of composing chiptune pieces for video game backgrounds, the soundtracks could be dynamically created to align with the unfolding game narrative, offering players an immersive and tailored gaming experience.</p><p>This approach not only streamlines the soundtrack creation process but also democratizes game music production, significantly reducing labor costs and lowering the barriers to entry in the industry.</p><p>Specifically tailored models for the target styles, areas, industries, or applications can dramatically enhance the quality of the generated content. Unlike general-purpose large models, tailored models understand the nuances and intricacies of their designated domain, leading to outputs that are more refined, accurate, and contextually appropriate. This specialization not only elevates the content quality but also reduces the computational resources necessary for running these models, translating into significant cost savings.</p><h3 id="federated-fine-tuning-for-maximizing-extensive-data-usage">Federated Fine-tuning for Maximizing Extensive Data Usage</h3><p>The fidelity and efficiency of these models come from the fine-tuning/distilling from general purpose models, with large-scale data from extensive user collections.</p><p>The model quality is not static. They could be continuously improved through iterative fine-tuning process. This process ensures that the models evolve, becoming more sophisticated and capable of producing even more accurate and high-quality content over time. </p><p>Federated Learning (FL) plays an important role here. FL enables models to learn from decentralized data sources without actually moving the data, enhancing privacy and allowing the model to continuously improve from real-world use across different devices and users.</p><p>FL will enable a broader participation in the creative model fine-tuning, pooling a richer diversity of data, which in turn elevates the quality and effectiveness of the models.</p><h3 id="bittensor-incentivized-data-contribution">Bittensor Incentivized Data Contribution</h3><p>Thanks to the incentivization mechanism provided by Bittensor, the subnet offers a compelling proposition where community members are motivated to contribute to data collection and the fine-tuning of models.</p><p>By contributing the data, individuals can earn rewards, creating a sustainable ecosystem where every contribution is valued and rewarded. This method not only preserves the privacy and security of user data but also ensures a continuous stream of income for those actively participating in the system. As more members join and contribute, the diversity and volume of data for fine-tuning improve, leading to more accurate and effective models.</p><p>In essence, Bittensor&apos;s incentivization mechanism fosters a vibrant community-driven environment, where the collective efforts of participants drive the advancement of AI technology in a secure and profitable manner.</p><h3 id="lower-the-barrier-of-participation-using-crynux-network">Lower the Barrier of Participation using Crynux Network</h3><p>The need for costly, high-end AI computing cards for validators and miners to carry out model fine-tuning and validation tasks is no longer an issue, thanks to Crynux Network&apos;s decentralized AI service cloud.</p><p>Miners can now concentrate solely on supplying higher quality data, as miner nodes can be operated on standard laptops or even smartphones. The federated computing tasks will be executed remotely via the Crynux Network.</p><p>Similarly, validators can obtain model evaluation results effortlessly through a straightforward API call on regular servers, eliminating the need for GPU cards.</p><h3 id="enforced-transparent-revenue-distribution-end-2-end">Enforced Transparent Revenue Distribution, End-2-End</h3><p>Models developed on the subnet will be hosted on the Crynux Network, offering services across all applications. Validators and miners contributed to these models on the subnet will share ongoing rewards from the payments of the models&apos; usage.</p><p>Crynux Network transforms the creative models into AI assets. Thanks to its decentralized model service cloud, all services related to the models&#x2014;from inference to fine-tuning&#x2014;are transparently processed on the blockchain. This ensures direct payments from users of the models to the holders of the model assets, eliminating intermediaries and manual intervention, technically securing the profit of the asset holders. Embrace a new era of trust and efficiency.</p><p>Additional AI-Fi applications may also spring up around the model and data assets, expanding their reach by linking these assets to a diverse array of AI-Fi applications and thus enlarging the current DeFi ecosystem.</p><h3 id="the-genki-dama-subnet">The Genki-Dama Subnet</h3><p>Genki-Dama, inspired by the iconic Dragon Ball technique, is a Bittensor subnet that utilizes decentralized data and harnesses decentralized computing resources. Built upon the incentive mechanism of Bittensor, and the computing network of Crynux, Genki-Dama empowers federated learning in a decentralized manner, shattering the limitation of centralized approaches.</p><p>The subnet aims to incentivize miners to contribute high quality data and train creative generative models with federated learning.</p><p>It includes two parts:</p><ul><li>Genki: federated learning SDK to utilize Bittensor incentive mechanism and Crynux decentralized computing resources</li><li>Dama: open-sourced model checkpoints trained by Genki, we will focus on generative models for creative contents.</li></ul><p>The first Dama is called Ruby, which is an Electronic Chiptune style music model that could be used to generate music for games. A demo video of fine-tuning such a model, and using it to generate music is given on X:</p><!--kg-card-begin: html--><blockquote class="twitter-tweet"><p lang="en" dir="ltr">&#x1F3B6; Unleash your creativity with Crynux! Generate your own music on distributed edge &#x2013; the magic starts at 00:20. &#x1F3A7;&#x2728; <a href="https://twitter.com/hashtag/DeAI?src=hash&amp;ref_src=twsrc%5Etfw&amp;ref=blog.crynux.io">#DeAI</a> <a href="https://twitter.com/hashtag/MusicMagic?src=hash&amp;ref_src=twsrc%5Etfw&amp;ref=blog.crynux.io">#MusicMagic</a> <a href="https://t.co/wysw2s47V1?ref=blog.crynux.io">pic.twitter.com/wysw2s47V1</a></p>&#x2014; Crynux #DeAI (@crynuxai) <a href="https://twitter.com/crynuxai/status/1834032564266533183?ref_src=twsrc%5Etfw&amp;ref=blog.crynux.io">September 12, 2024</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script><!--kg-card-end: html--><p>Find more information about the Genki-Dama Subnet in the GitHub repo:</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/crynux-ecosystem/genki-dama?ref=blog.crynux.io"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - crynux-ecosystem/genki-dama</div><div class="kg-bookmark-description">Contribute to crynux-ecosystem/genki-dama development by creating an account on GitHub.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="[Bittensor x Crynux] Creative Content Revolution: the Federated Fine-tuning Subnet"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">crynux-ecosystem</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/8cfa75fb68dd9a330c0aebc203a6878612e9606fce0066a5f44b36a5e7f7c9a8/crynux-ecosystem/genki-dama" alt="[Bittensor x Crynux] Creative Content Revolution: the Federated Fine-tuning Subnet"></div></a></figure><p>And follow the tutorials inside the README file to start a validator/miner node.</p>]]></content:encoded></item><item><title><![CDATA[HappyAIGen Is Now Live!]]></title><description><![CDATA[<p>&#x1F389; Exciting News: HappyAIGen Is Now Live! &#x1F680; Play to Earn, and Have Fun!</p><p>HappyAIGen, our community-driven project, powered by AI tools from the Crynux Network, is officially live today! Dive into a world of fun activities while earning credits along the way.</p><p><strong>Join our Discord server to kickstart your</strong></p>]]></description><link>https://blog.crynux.io/happyaigen-is-now-live/</link><guid isPermaLink="false">6613c18e0da5ac0001c175cd</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Mon, 08 Apr 2024 10:11:22 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2024/04/photo_2024-04-08_18-33-16-1.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2024/04/photo_2024-04-08_18-33-16-1.jpg" alt="HappyAIGen Is Now Live!"><p>&#x1F389; Exciting News: HappyAIGen Is Now Live! &#x1F680; Play to Earn, and Have Fun!</p><p>HappyAIGen, our community-driven project, powered by AI tools from the Crynux Network, is officially live today! Dive into a world of fun activities while earning credits along the way.</p><p><strong>Join our Discord server to kickstart your journey with Welcome Credits </strong>&#x1F449;<a href="https://discord.gg/5U2jV9rDSC?ref=blog.crynux.io">https://discord.gg/5U2jV9rDSC</a></p><p>Remember, the earlier you join, the more credits you can earn!</p><h3 id="%F0%9F%8E%AE-play-ai-games">&#x1F3AE; Play AI Games</h3><p>Engage in thrilling AI-powered games and unleash your creativity by generating images with our AI bot. Stay tuned as we continuously introduce more games to keep the excitement flowing.</p><p>Find all the exciting details inside the Crynux Discord server.</p><h3 id="%F0%9F%8C%B1-help-our-community-thrive">&#x1F331; Help Our Community Thrive</h3><p>Your support is crucial in expanding the Crynux ecosystem. Earn credits by inviting friends to our Discord server and spreading the word about Crynux through tweets.</p><p>Follow the instructions within our Discord server to start earning credits by inviting your friends.</p><h3 id="%E2%9A%9B%EF%B8%8F-start-a-crynux-node">&#x269B;&#xFE0F; Start a Crynux Node</h3><p>Become a pillar of the Crynux Network by starting a Crynux Node. As a node provider, you&apos;ll be rewarded for contributing AI computing power to the HappyAIGen project.</p><p>Starting a Crynux Node is hassle-free! Simply download the Crynux Node software and launch it with just one click. If you own an NVidia GPU or a Macbook/Mac Studio M1/M2/M3, you can start collecting credits automatically.</p><p><strong>Get started with these easy-to-use apps:</strong></p><p><a href="https://docs.crynux.ai/node-hosting/start-a-node-windows?ref=blog.crynux.io">Start a node on Windows</a></p><p><a href="https://docs.crynux.ai/node-hosting/start-a-node-mac?ref=blog.crynux.io">Start a node on Mac</a></p><p><a href="https://docs.crynux.ai/node-hosting/start-a-node-docker?ref=blog.crynux.io">Start a node using Docker</a><br></p><p>The REAL DeAI is the one you can join.</p><p>Join us in making decentralized AI a reality!</p>]]></content:encoded></item><item><title><![CDATA[The Helium Network]]></title><description><![CDATA[<p>We are excited to announce the release of the Helium Network, which is the second testnet of the Crynux Network.</p><p>The Crynux Network evolves through the sequential release of various networks, each building upon its predecessor by introducing additional features and improvements. Initial releases are designated as testnets, serving as</p>]]></description><link>https://blog.crynux.io/the-helium-network/</link><guid isPermaLink="false">6604d1f80da5ac0001c172cd</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Fri, 29 Mar 2024 04:15:37 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2024/03/helium-transformed.jpeg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2024/03/helium-transformed.jpeg" alt="The Helium Network"><p>We are excited to announce the release of the Helium Network, which is the second testnet of the Crynux Network.</p><p>The Crynux Network evolves through the sequential release of various networks, each building upon its predecessor by introducing additional features and improvements. Initial releases are designated as testnets, serving as preliminary versions for testing purposes. Subsequent releases are mainnets, which incorporate upgrades to the previous networks through forking.</p><p>The networks are named after the elements in the Periodic Table, in which Helium is the second element. In the last testnet, <a href="https://blog.crynux.io/the-hydrogen-network/">the Hydrogen Network</a>, a decentralized Stable Diffusion task execution engine is implemented, the applications could use the network to generate images, and everyone possessing an Nvidia graphic card could start a node to join the network, exchanging the computation power for tokens.</p><p>Building upon the foundation of the Hydrogen Network, the Helium Network introduces an array of enhancements. These include a variety of new application use cases and support for more node device types which are poised to significantly increase the number of nodes connecting to the network.</p><h3 id="running-the-gpt-text-generation-tasks">Running the GPT Text Generation Tasks</h3><p>The long expected feature to run the GPT text generation tasks on the Crynux Network is finally out. AI Chatbot applications could have already been built on top of the Crynux Network. Choose from <a href="https://huggingface.co/models?pipeline_tag=text-generation&amp;sort=trending&amp;ref=blog.crynux.io">most of the LLM models on the Huggingface</a>, such as <a href="https://huggingface.co/meta-llama?ref=blog.crynux.io">LLaMa 2</a> and <a href="https://huggingface.co/google/gemma-7b?ref=blog.crynux.io">Gemma</a>, specify the model ID and the prompt in a GPT task, and the task could be executed in the Crynux Network to get output texts.</p><p>A chatbot UI has been deployed to demonstrate the ability. To try the chatbot yourself, go to <a href="https://chat.crynux.ai/?ref=blog.crynux.io">https://chat.crynux.ai</a>:</p><figure class="kg-card kg-image-card"><img src="https://blog.crynux.io/content/images/2024/03/e43216a51c8e2a5793d02b7d4935322.png" class="kg-image" alt="The Helium Network" loading="lazy" width="1947" height="1214" srcset="https://blog.crynux.io/content/images/size/w600/2024/03/e43216a51c8e2a5793d02b7d4935322.png 600w, https://blog.crynux.io/content/images/size/w1000/2024/03/e43216a51c8e2a5793d02b7d4935322.png 1000w, https://blog.crynux.io/content/images/size/w1600/2024/03/e43216a51c8e2a5793d02b7d4935322.png 1600w, https://blog.crynux.io/content/images/2024/03/e43216a51c8e2a5793d02b7d4935322.png 1947w" sizes="(min-width: 720px) 720px"></figure><p>After the user selects an open source LLM model, and submits the question in the WebUI, the question will be sent to the Crynux Network as a GPT task. The result will be returned to the user when the execution is finished.</p><p>To the application developers, it is easy to connect the application to the Crynux Network, enhancing the application with AI ability instantly. Just follow the <a href="https://docs.crynux.ai/application-development/application-workflow?ref=blog.crynux.io">getting started guide for the developers</a>.</p><h3 id="mac-as-the-computation-node">Mac as the Computation Node</h3><p>Now the Crynux Node could be started on the Mac with Apple Silicon chips (m1, m2 and m3 series). All the owners of a supported Mac could now join the network to earn tokens by simply downloading the app and starting it with one click.</p><figure class="kg-card kg-image-card"><img src="https://blog.crynux.io/content/images/2024/03/cnx_mac_d-1.png" class="kg-image" alt="The Helium Network" loading="lazy" width="2000" height="1356" srcset="https://blog.crynux.io/content/images/size/w600/2024/03/cnx_mac_d-1.png 600w, https://blog.crynux.io/content/images/size/w1000/2024/03/cnx_mac_d-1.png 1000w, https://blog.crynux.io/content/images/size/w1600/2024/03/cnx_mac_d-1.png 1600w, https://blog.crynux.io/content/images/size/w2400/2024/03/cnx_mac_d-1.png 2400w" sizes="(min-width: 720px) 720px"></figure><p>The <a href="https://www.trustedreviews.com/explainer/what-is-unified-memory-4340912?ref=blog.crynux.io">Unified Memory Architecture</a> of the Mac, which allows the shared use of system memory to both the CPU and GPU with high bandwidth, offers a significant advantage when working with large AI models. Although the execution might be slower, Mac&apos;s ability to utilize its extensive system memory enables it to successfully complete certain AI tasks involving large models&#x2014;tasks that might fail on Nvidia cards due to their limited VRAM. This capability offers a cost-effective alternative in scenarios where execution speed is not the primary concern.</p><p>To start a node on your Mac, follow the <a href="https://docs.crynux.ai/node-hosting/start-a-node-mac?ref=blog.crynux.io">node starting guide</a>.</p><h3 id="flexible-task-pricing">Flexible Task Pricing</h3><p>The task price is now determined completely by the market. If there are more nodes to execute the same number of tasks, the average task price will drop. If there are more tasks to be executed by the same set of nodes, the task price will rise.</p><p>The task price is not set by the Crynux Network though, neither fixed nor dynamically. Instead, the price is set by the user, and the Crynux Network will choose the tasks with higher prices to execute first.</p><p>If the user needs his task to be completed faster, he could set a higher price on his task. However, if the price is a critical concern to the user, he could also finish the task at a lower price, and wait longer for the result.</p><p>The flexible task pricing mechanism allows for an effective and efficient allocation of tasks across the network. By allowing the market to dictate task prices, Crynux ensures that both nodes and users benefit from a dynamically balanced system. Users are incentivized to offer competitive prices for quicker task execution, while more nodes are attracted to join the network when the task prices go higher, providing more computation power to the Crynux Network.</p><p>Even more, the order of task execution is not simply determined by the price set by the user, but rather a task value estimated by taking the task execution duration into account. This approach effectively identifies tasks that provide optimal value&#x2014;those that contribute a significant amount without demanding an excessive portion of resources, maximizing the incomes of all the nodes in the network.</p><p>The details about the task pricing strategy is described <a href="https://docs.crynux.ai/system-design/task-pricing?ref=blog.crynux.io">in the documentation</a>, </p><h3 id="improvements-on-the-network-efficiency-and-availability">Improvements on the Network Efficiency and Availability</h3><p>Crynux Network is a loosely coupled decentralized network, where a stable connection to a node can never be expected. A node could be shutdown while still claimed online on the blockchain, or stop responding at any time during the task execution. Which, if not handled properly, will cause a lot of task failures that renders the network unusable to the applications.</p><p>A lot of efforts have been made to improve the network efficiency and availability, such as giving higher probability to select nodes that providing better services, kicking out nodes that constantly fails, and adjust the incentivization based on the node availability.</p><p>The details can be found <a href="https://docs.crynux.ai/system-design/quality-of-service-qos?ref=blog.crynux.io">in the documentation</a>.</p><p>A complete list of all the features and improvements of the Helium Network can be found in the release node:</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://docs.crynux.ai/releases/helium-network?ref=blog.crynux.io"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Helium Network | Crynux Network</div><div class="kg-bookmark-description">[Jan 30, 2024] Decentralized GPT Task Execution Engine</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://1099363499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fow8Hv7VFImRi1aXapa0H%2Ficon%2F6IwOyG2ndmvZZdqCmiRA%2Fcrynux_smaller.png?alt=media&amp;token=5da2b469-1983-4666-82ff-e84372e60d72" alt="The Helium Network"><span class="kg-bookmark-author">Logo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://docs.crynux.ai/~gitbook/ogimage/0GdDQlBrtprF6Lc1dXpZ" alt="The Helium Network"></div></a></figure><p>The Helium Network is a big step towards a minimum yet complete network to be massively adopted. We are already close to a mainnet release that brings the exciting experience to the real-life applications and users.</p><p>Stay tuned!</p>]]></content:encoded></item><item><title><![CDATA[The Hydrogen Network]]></title><description><![CDATA[<p>We are thrilled to announce the release of the Hydrogen Network. A fully featured decentralized network that supports running the Stable Diffusion image generation tasks.</p><p>From the application&apos;s perspective, it is an inference API service on the cloud that could be used just like AWS. The application submits</p>]]></description><link>https://blog.crynux.io/the-hydrogen-network/</link><guid isPermaLink="false">6549e2e333bca8000129fe7b</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Tue, 07 Nov 2023 10:54:39 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2023/11/hydrogen.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2023/11/hydrogen.png" alt="The Hydrogen Network"><p>We are thrilled to announce the release of the Hydrogen Network. A fully featured decentralized network that supports running the Stable Diffusion image generation tasks.</p><p>From the application&apos;s perspective, it is an inference API service on the cloud that could be used just like AWS. The application submits the task to the API, and gets the images in return.</p><p>The computation power comes from a decentralized network of the home computers that are coordinated by a consensus protocol running on the Blockchain. The individuals who have the spared computation power could connect their devices to the network, exchanging the computation power for tokens by starting a node, to run the inference tasks for the applications.</p><p>The Hydrogen Network is the very first testnet of Crynux. Although called a testnet, the featured consensus protocol is robust enough to allow everyone to join at this moment.</p><blockquote>In case you can&apos;t wait, here is the getting started guide for the application developers: <a href="https://docs.crynux.ai/application-development/application-workflow?ref=blog.crynux.io">https://docs.crynux.ai/application-development/application-workflow</a>. And this is the getting started guide for the node providers: <a href="https://docs.crynux.ai/node-hosting/join-the-network?ref=blog.crynux.io">https://docs.crynux.ai/node-hosting/join-the-network</a></blockquote><h3 id="the-image-generator">The Image Generator</h3><p>Let&apos;s start by introducing the Image Generator, the first application running on the Hydrogen Network.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2023/11/cb65a6162a23121a6ffb8cd2c3ce739.png" class="kg-image" alt="The Hydrogen Network" loading="lazy" width="1586" height="885" srcset="https://blog.crynux.io/content/images/size/w600/2023/11/cb65a6162a23121a6ffb8cd2c3ce739.png 600w, https://blog.crynux.io/content/images/size/w1000/2023/11/cb65a6162a23121a6ffb8cd2c3ce739.png 1000w, https://blog.crynux.io/content/images/2023/11/cb65a6162a23121a6ffb8cd2c3ce739.png 1586w" sizes="(min-width: 720px) 720px"><figcaption>The Image Generator on the Hydrogen Network</figcaption></figure><p>The Image Generator provides a web interface (just like <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui?ref=blog.crynux.io"><code>stable-diffusion-webui</code></a>) for the users to generate images in the browser. Thanks to the Hydrogen Network, the application could be used on the devices that do not have a capable GPU integrated. If the browser exists, the Image Generator could be used.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2023/11/image.png" class="kg-image" alt="The Hydrogen Network" loading="lazy" width="1941" height="1246" srcset="https://blog.crynux.io/content/images/size/w600/2023/11/image.png 600w, https://blog.crynux.io/content/images/size/w1000/2023/11/image.png 1000w, https://blog.crynux.io/content/images/size/w1600/2023/11/image.png 1600w, https://blog.crynux.io/content/images/2023/11/image.png 1941w" sizes="(min-width: 720px) 720px"><figcaption>Model Selection in the Image Generator</figcaption></figure><p>The base models, such as SD1.5 and SDXL, can be selected in the user interface. The LoRA models can also be selected and combined with the base model. The OpenPose Controlnet is also supported. The users could even input a model download link from Civitai to be used as the LoRA model.</p><p>So far, the application looks exactly the same as a traditional web application, nothing special. Until the &quot;Generate Image&quot; button is clicked, and the modal displaying the task execution status is shown, we could find a little bit of difference.</p><p>From the modal, we could see that the task is sent to the Blockchain first, and then executed on the computation nodes, and finally the result images are verified and retrieved.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2023/11/image-1.png" class="kg-image" alt="The Hydrogen Network" loading="lazy" width="1950" height="1246" srcset="https://blog.crynux.io/content/images/size/w600/2023/11/image-1.png 600w, https://blog.crynux.io/content/images/size/w1000/2023/11/image-1.png 1000w, https://blog.crynux.io/content/images/size/w1600/2023/11/image-1.png 1600w, https://blog.crynux.io/content/images/2023/11/image-1.png 1950w" sizes="(min-width: 720px) 720px"><figcaption>Task Execution Process on the Hydrogen Network</figcaption></figure><p>The Image Generator can be accessed directly online, give it a try yourself:</p><p><a href="https://ig.crynux.ai/?ref=blog.crynux.io">https://ig.crynux.ai</a></p><h3 id="the-decentralized-computing-network-underneath">The Decentralized Computing Network Underneath</h3><p>The Blockchain has maintained a list of all the available nodes in the network. When a task is sent to the Blockchain, the Blockchain randomly selects 3 nodes in the list, and notify them to execute the task.</p><p>The nodes will run the task locally. When the images are finally computed, &#xA0;each of the nodes will disclose a similarity score on the Blockchain. The Blockchain compares the score of 3 nodes to find out if there are nodes who are escaping from the computation by submitting random scores, to save the local resources. If the result is validated to be correct, the images are returned to the application. And the nodes will get paid. The video below demonstrates this process:</p><figure class="kg-card kg-embed-card"><iframe width="200" height="150" src="https://www.youtube.com/embed/hkQOIeQqmZ4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen title="A Demo Video of the Hydrogen Network"></iframe></figure><p>Four windows are shown in the video:</p><ul><li><strong>Top-left</strong>: the Image Generator application </li><li><strong>Top-right</strong>: the WebUI of the Crynux Node </li><li><strong>Bottom-left</strong>: the Blockchain explorer </li><li><strong>Bottom-right</strong>: the logs from the Docker container of the Crynux Node</li></ul><p>The image generation started from the user&apos;s operation in the Image Generator(top-left window). The user selected a base model and a LoRA model, and then clicked the &quot;Generate Image&quot; button. A modal popup was displayed to show the running status to the user. </p><p>The task was sent to the Blockchain. When it was confirmed on the Blockchain, the event logs were shown in the block explorer(bottom-left window). When the task started executing, the task execution status changed from &quot;idle&quot; to &quot;executing&quot; on the WebUI of the Crynux Node (top-right window). </p><p>More logs of the Node was printed(bottom-right window) and more event logs appeared in the block explorer when the Crynux Nodes finished the local execution and started to execute the consensus protocol on the Blockchain. </p><p>Then the task was successfully finished, the images were shown in the Image Generator, and the status of the Crynux &#xA0;Node became idle again, with 10 more tokens in the wallet.</p><p>As a decentralized task execution engine, the Hydrogen Network lays a solid foundation for the Crynux Network. Upon which more task types will be supported, such as the fine-tuning of the Stable Diffusion models, and GPT models, in a short future. And the decentralized model serving layer will be built next.</p><p>The most important thing in the decentralized network is the consensus protocol, which ensures that all the nodes are behaving honestly. Since beside the rules defined in the consensus protocol, there is nothing else to control what a node can do. They join and quit the network freely. Nobody knows who they are and where they are. They will try to exploit all the vulnerabilities in the consensus protocol to get more tokens at lower cost.</p><p>Find more about the consensus protocol in the document:</p><p><a href="https://docs.crynux.ai/system-design/consensus-protocol?ref=blog.crynux.io">https://docs.crynux.ai/system-design/consensus-protocol</a></p><h3 id="start-a-node">Start a Node</h3><p>If you have purchased an NVIDIA RTX graphic card, whether for gaming or designing, why not letting it make some extra profit for you, when you&apos;re not using it.</p><p>The node can be easily started on both Windows and Linux machines. The node is limited to a Docker container, which can not affect the other parts of the system. An integrated WebUI is provided to visualize the node status and the system resource usage, which also provides an easy way to control the node:</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.crynux.io/content/images/2023/11/image-2.png" class="kg-image" alt="The Hydrogen Network" loading="lazy" width="1894" height="1112" srcset="https://blog.crynux.io/content/images/size/w600/2023/11/image-2.png 600w, https://blog.crynux.io/content/images/size/w1000/2023/11/image-2.png 1000w, https://blog.crynux.io/content/images/size/w1600/2023/11/image-2.png 1600w, https://blog.crynux.io/content/images/2023/11/image-2.png 1894w" sizes="(min-width: 720px) 720px"><figcaption>The WebUI of the Crynux Node</figcaption></figure><p>The node can also be started in the headless mode, which is convenient for the server environment. After proper configuration, the node will automatically join the network when the container is started, and quit the network when the container is terminated.</p><h3 id="open-source-and-well-documented">Open Source and Well Documented</h3><p>Crynux is committed to build an open and democratic ecosystem. We prioritize the community by being completely open to it. The projects are open sourced from day one. A lot of efforts have been put on the documentation of every aspect of the system.</p><p>All the source codes of the Hydrogen Network can be found on the GitHub:</p><p><a href="https://github.com/crynux-ai?ref=blog.crynux.io">https://github.com/crynux-ai</a></p><p>All the technical documents of the Hydrogen Network can be found on the documentation site:</p><p><a href="https://docs.crynux.ai/?ref=blog.crynux.io">https://docs.crynux.ai</a></p><p>If you want to learn more about the design of the Hydrogen Network, start from the network architecture:</p><p><a href="https://docs.crynux.ai/system-design/network-architecture?ref=blog.crynux.io">https://docs.crynux.ai/system-design/network-architecture</a> </p><p>And don&apos;t hesitate to contribute, you are always welcome to join the revolution.</p>]]></content:encoded></item><item><title><![CDATA[A Practical Verification Mechanism for Decentralized GPU Sharing]]></title><description><![CDATA[<p>The verification mechanism is critical to every decentralized network. Vulnerabilities in the mechanism will lead to the collapse of the entire network. </p><p>In the decentralized GPU sharing network, the individual GPU holders contribute their spared computing power to the network in exchange for the profit, and the users pay to</p>]]></description><link>https://blog.crynux.io/a-practical-verification-mechanism-for-decentralized-gpu-sharing/</link><guid isPermaLink="false">64b8a67d49bd7a0001fe8a62</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Fri, 21 Jul 2023 00:48:50 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2023/07/1616176964166.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2023/07/1616176964166.jpg" alt="A Practical Verification Mechanism for Decentralized GPU Sharing"><p>The verification mechanism is critical to every decentralized network. Vulnerabilities in the mechanism will lead to the collapse of the entire network. </p><p>In the decentralized GPU sharing network, the individual GPU holders contribute their spared computing power to the network in exchange for the profit, and the users pay to use the computing power to run their AI tasks, such as the Stable Diffusion image generation. &#xA0;If the GPU holders could send random computation results back without being discovered, the users will keep getting bad results for their AI tasks, and they will soon stop using the system, and the system will be abandoned by all eventually.</p><p>Note that we can not rely on the users to discover the cheating, since the user could also cheat by reporting error computation for every task to save his money. The verification could only be performed by the system, or more precisely, the consensus mechanism in the decentralized network.</p><p>The verification is much harder in the decentralized systems, comparing to the verification in the centralized systems. The verification rules must be open to the public since it must be executed by all the consensus participants in the network. Which gives the attackers the opportunity to fully examine all the details to find vulnerabilities. And the rules is fixed before the attack happens. There is no chance to manually examine the attacking behaviors and modify the rules accordingly before the real damage occurs.</p><p>Works have been done on various of schemas and the related technologies by quite a lot of researchers and companies. At Crynux, we have been working on the Zero Knowledge Proofs (ZKP) for quite a long time, to <a href="https://blog.crynux.io/on-chain-verification-of-the-model-training-using-zkp">verify the actual execution of the AI tasks</a>. The bottleneck so far, is still the speed of the ZKP generation for large neural networks, or a practical contribution measurement schema that survives the randomness and the attacks of the long-running gradient descending process.</p><p>But if we put some limits on the supported AI tasks, we could already implement a practical schema that works on large scale neural networks in a large scale decentralized network.</p><p>More specifically, the limit we put on the task is that the input must be open and the task must be deterministic. If the same task is executed by multiple nodes, they should all get the same result. For example, the training using private datasets from other nodes is not supported since the private data can not be revealed to others. But most of the tasks are supported other than those related to the private data. Stable Diffusion training task is supported, as well as the image generation task. LLM fine-tuning and inferencing tasks are also supported.</p><p>The idea is actually quite simple: for a given computation task, the network randomly selects 3 nodes to run the task simultaneously, and compares the results returned from the nodes. If one of the nodes has a different result than the other two nodes, the node is cheating. And the node should have certain amounts of tokens staked on the network before receiving tasks. If the node is found cheating, the staked tokens are slashed immediately.</p><p>The design consumes 3 times the computation power than what is required only to get the computation result. But since it is the spared computation resource we are talking about, it will still be cheaper than the cloud hosted GPUs. And we can still further cut it down to 2 times in most cases by a small optimization in the workflow.</p><p>For the attacker, it becomes a calculation of the probabilities of winning or loosing. The variable the attacker could control is the number of the (fake) nodes he possesses in the network. The attacker could start as many nodes as he wants, as long as he has enough tokens to stake. Possessing more nodes gives the attacker higher probability to win, since it will be more likely to have more than two nodes of himself been selected in a single task. And in this case, he can cheat the system by giving two identical fake results.</p><p>The probability of a successful attack (an attacker getting more than 2 nodes of himself selected in a task) could be calculated as:</p><p>\[ &#xA0;p = \frac{ C_d^2 * C_h^1 + C_d^3}{C_{d+h}^3} \]</p><p>Where \( h \) is the number of the honest nodes, and \( d \) is the number of the dishonest nodes the attacker possesses.</p><p>And the expectation of the income from cheating is given by:</p><p>\[ E = p * k - (1-p) * s \]</p><p>Where \( k \) is the price of the task, and \( s \) is the number of staked tokens.</p><p>By increasing the number of staked tokens \( s \), we could decrease the expectation \( E \) down to zero or even below. If \( E \) is below zero, there is no benefit to attack the system by starting more fake nodes. The attacking is highly likely to cause the attacker to loose money rather than earn.</p><p>Let&apos;s see some examples of the calculated numbers.</p><p>For easier understanding, assume the price for executing a task is $0.1, rather than a number in tokens. And let&apos;s say 10% of the nodes in the network are honest. Set the target \( E \) to be zero, the required amount of money to stake is then:</p><p>\[ s = \frac{p * k}{1-p} \]</p><p>Note that we might double the amount of the tokens required to stake in practice, to further limit the gambling attempts of the attackers.</p><p>Here&apos;s a table showing the required money to stake in different network sizes:</p><!--kg-card-begin: markdown--><table>
<thead>
<tr>
<th>No. total</th>
<th>No. honest</th>
<th>No. dishonest</th>
<th>Prob. of cheating success</th>
<th>$ required to stake</th>
</tr>
</thead>
<tbody>
<tr>
<td>100</td>
<td>10</td>
<td>90</td>
<td>0.974211503</td>
<td>3.777697842</td>
</tr>
<tr>
<td>1000</td>
<td>100</td>
<td>900</td>
<td>0.972216505</td>
<td>3.499259211</td>
</tr>
<tr>
<td>10000</td>
<td>1000</td>
<td>9000</td>
<td>0.972021605</td>
<td>3.474186444</td>
</tr>
<tr>
<td>100000</td>
<td>10000</td>
<td>90000</td>
<td>0.97200216</td>
<td>3.471704109</td>
</tr>
</tbody>
</table>
<!--kg-card-end: markdown--><p>We could tell from the calculation that the probability of successful cheating is only related to the proportion of the honest nodes in the network. And at such a low proportion, the amount of money required to stake is surprisingly low.</p><p>Let&apos;s decrease the proportion of the honest nodes further more and set it to 1%, here&apos;s what happens:</p><!--kg-card-begin: markdown--><table>
<thead>
<tr>
<th>No. total</th>
<th>No. honest</th>
<th>No. dishonest</th>
<th>Prob. of cheating success</th>
<th>$ required to stake</th>
</tr>
</thead>
<tbody>
<tr>
<td>100</td>
<td>1</td>
<td>99</td>
<td>1</td>
<td>-</td>
</tr>
<tr>
<td>1000</td>
<td>10</td>
<td>990</td>
<td>0.999731174</td>
<td>371.8879113</td>
</tr>
<tr>
<td>10000</td>
<td>100</td>
<td>9900</td>
<td>0.999704911</td>
<td>338.781133</td>
</tr>
<tr>
<td>100000</td>
<td>1000</td>
<td>99000</td>
<td>0.999702291</td>
<td>335.7985534</td>
</tr>
</tbody>
</table>
<!--kg-card-end: markdown--><p>The required amount of money to stake is still not too much. And note that we are assuming all the dishonest nodes belong to a single attacker. In the real world, if there&apos;re multiple attackers, and if they&apos;re not conspired to summit the same fake result, the attackers could be treated as the honest ones to each other. Which will further reduce the risk of being successfully attacked.</p><p>The staking based verification mechanism lays a solid foundation for the decentralized GPU sharing network, but there are still possibilities to attack the network from the engineering aspect.</p><p>For example, the attacker could monitor the Blockchain for computation result submission, and submit the same result as other nodes in the task. Another way of attack is to submit fake results only when the attacker finds that two of his nodes are selected in a same task. In other cases, he just aborts the task to avoid being slashed.</p><p>The engineering attacks could be solved with careful system design and implementation. But the attacks are still somewhat inevitable for a growing system. Several rounds of the testnet runs under controlled environment will help resolving the potential problems.</p><p>Stay tuned for the upcoming!</p>]]></content:encoded></item><item><title><![CDATA[Stable Diffusion Workflow Reimagined: Cheap, Flexible and more Powerful]]></title><description><![CDATA[<p>Stable Diffusion and AIGC has become a groundbreaking tool that has transformed the landscape of various industries, offering unprecedented benefits and opportunities.</p><p>Being an open source solution, the original Stable Diffusion models are freely accessible to the public. The open source toolkits around the models, such as the <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui?ref=blog.crynux.io">web user</a></p>]]></description><link>https://blog.crynux.io/stable-diffusion-workflow-reimagined-cheap-flexible-and-more-powerful/</link><guid isPermaLink="false">64b4da8049bd7a0001fe8323</guid><dc:creator><![CDATA[Crynux]]></dc:creator><pubDate>Tue, 18 Jul 2023 12:49:18 GMT</pubDate><media:content url="https://blog.crynux.io/content/images/2023/07/8462545860653724753.webp" medium="image"/><content:encoded><![CDATA[<img src="https://blog.crynux.io/content/images/2023/07/8462545860653724753.webp" alt="Stable Diffusion Workflow Reimagined: Cheap, Flexible and more Powerful"><p>Stable Diffusion and AIGC has become a groundbreaking tool that has transformed the landscape of various industries, offering unprecedented benefits and opportunities.</p><p>Being an open source solution, the original Stable Diffusion models are freely accessible to the public. The open source toolkits around the models, such as the <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui?ref=blog.crynux.io">web user interface</a>, are developing rapidly as well. More and more <a href="https://civitai.com/?ref=blog.crynux.io">pretrained and LoRA models</a> are published online for others to download and use directly. The ecosystem around Stable Diffusion is evolving fast.</p><p>Despite the growing on the size of the Stable Diffusion community, there are still obstacles that prevent the adoption of such AIGC tools to the vast majority.</p><p><strong>Expensive GPU is required just to begin</strong></p><p>The requirement to run the Stable Diffusion tools for an Nvidia graphic card, although not as high as for LLMs, is still mandatory. At least a consumer level RTX card that supports CUDA must be provided. Given that most of the laptops are equipped with the integrated graphic cards, it is not possible for them to use Stable Diffusion locally. Yes, you can of course run the image generation using CPUs, but you will eventually give it up after minutes and minutes of waiting.</p><p><strong>The learning curve is really steep</strong></p><p>Even with the help of the stable-diffusion-webui, it is still too easy to get lost in the huge amount of concepts and parameters for beginners. The pretrained model, the LoRA model and the ControlNet model should all be downloaded and placed at different places, the LoRA network plugin and ControlNet plugin must be installed and the corresponding keywords and weights must be added to the prompt.</p><p>After the installation, it is now time to step into the ocean of the hyper-parameters tuning. It is hard even for AI professionals to know the exact meaning of all the params and to find a best combination of them to produce good images.</p><p>Now that we have mastered all the basics about Stable Diffusion. Finally! Welcome to the area of the prompt engineering. The images we get highly depends on the prompt given, in an unpredictable way. There are quite some guidelines and best practices to learn on how to setup the prompt, it still feels like rolling a dice most of the time.</p><p><strong>The quality of the open source models is low</strong></p><p>Even at its best setup, the images generated from the open source Stable Diffusion models are hardly acceptable for serious use cases. It might seems promising at first attempts, but there is always something missing even after tens of trails, either the whole picture is not elegant enough, or some details are incorrect and you just cannot make it right.</p><p><strong>The limitation of the commercial platforms</strong></p><p>Several online solutions, such as <a href="https://www.midjourney.com/?ref=blog.crynux.io">Midjourney</a>, emerged to tackle those problems. By training private in-house models and serving them through an online service, the images generated from those platforms are finally commercial ready. By utilizing the cloud hosted GPUs, the service could be used anywhere, as long as a web browser presents.</p><p>Everything comes at a price. The cost of the cloud hosted GPUs are surprisingly high these days. No thanks to the competition of the LLM training among large enterprises. And the GPU costs are reflected in the overall costs of using the platforms.</p><p>The private in-house model is the most valuable asset to the platform. So it must be kept safe and never open to anyone. This limits the possible use cases for the platforms. The users can only use the model as is, no further customization could be made. </p><p>For example, a platform trained a private anime style model that is very good at generating images for the anime characters. And a user wants to generate an image for his favorite anime character. If, by any chance, the model is trained with the data of the character included, the user could get what he wants happily. </p><p>However, if the model is trained without those data, the image cannot be generated correctly. At such circumstance, a LoRA fine-tuning could be easily performed on the model to give the user what he wants, only a few images of the character is required. But if the model is not open to the user, and the platform does not support fine-tuning (which is the case for most existing platforms), there is nothing else the user can do.</p><p><strong>Cheap spared GPU resources from the decentralized network </strong></p><p>Crynux incentivizes the GPU holders to contribute their spared computing resources to others. A decentralized network is formed to connect all the GPU holders and the users. The user sends the task, such as the image generation task and the LoRA fine-tuning task, to the network. And the task is automatically dispatched to some of the GPU holders&apos; nodes according to the node availability. After remote execution, the result is returned to the user. No more local GPU is required on the user&apos;s laptop.</p><p>The cost is calculated on the granularity of tasks. No cost for anything more than the task consumed should be paid. And since this is the spared computing resource, the users could expect a much lower price compared to the cloud hosted solutions, or buying cards themselves.</p><p>From the users perspective, the complexity of the decentralized network is completely hiding behind the applications. The user experience of &#xA0;a Crynux enabled application remains exactly the same as the cloud hosted ones. </p><p><strong>Reshaped user experience from the deep integration of Crynux APIs</strong></p><p>It is usually not the infrastructure&apos;s duty to optimize the user experience but rather the application&apos;s. However, when talking about Stable Diffusion (and other AI model services as well), how the infra is organized has a great impact on the capabilities of the downstream applications. And Crynux has been designed to give all the possibilities to the applications, allowing them to build workflows around Stable Diffusion models in anyway they could imagine. </p><p>Let&apos;s take the application <a href="https://cstudio.fuobase.xyz/?ref=blog.crynux.io">Character Studio</a> as an example, to see how exactly Crynux could be used to bring new possibilities to the Stable Diffusion ecosystem.</p><figure class="kg-card kg-image-card"><img src="https://blog.crynux.io/content/images/2023/07/8751db9c3f576f4119e81c259fd04de.png" class="kg-image" alt="Stable Diffusion Workflow Reimagined: Cheap, Flexible and more Powerful" loading="lazy" width="2000" height="1201" srcset="https://blog.crynux.io/content/images/size/w600/2023/07/8751db9c3f576f4119e81c259fd04de.png 600w, https://blog.crynux.io/content/images/size/w1000/2023/07/8751db9c3f576f4119e81c259fd04de.png 1000w, https://blog.crynux.io/content/images/size/w1600/2023/07/8751db9c3f576f4119e81c259fd04de.png 1600w, https://blog.crynux.io/content/images/2023/07/8751db9c3f576f4119e81c259fd04de.png 2349w" sizes="(min-width: 720px) 720px"></figure><p><strong>How to train a consistent image generator for the given character</strong></p><p>Character Studio focuses on one thing: Train a (LoRA) model for a character, whether it is from the anime or a real person, and generate more images of the same character in different poses consistently.</p><p>Before Character Studio, unlike image generation, the training can only be performed by the professional, using tools like <a href="https://github.com/Akegarasu/lora-scripts?ref=blog.crynux.io">lora-scripts</a>. For those who do not have programming or machine learning experiences but very good at learning, lora-scripts could also be used under just a few tutorials. But this is still too hard for everyone.</p><p>And for the professionals, the hardest part is &quot;consistent&quot;. Usually one will find himself struggling on a very close image that has a key feature missing on the character. And usually the problem lies in the dataset and the annotations, which is hard to find out without hundreds of times of trail and error.</p><p>Character Studio makes it possible for everyone to train the model just by providing images and annotations as instructed. The best practices and know-hows of &quot;consistent&quot; is integrated into the app, transparently making the user feels like &quot;it just works&quot;.</p><p>With the help of Crynux, Character Studio has no requirements on the hardware. It can be used either from the web browser, or as a desktop app on any laptops.</p><p><strong>Training LoRA models upon a base model from Crynux marketplace</strong></p><p>The training of a LoRA model requires an underlying pretrained base model. And the quality of the base model matters. If the character is from the anime, a base model that is pretrained using a lot of anime images should be used. </p><p>The high quality base models are all ready to use in the Crynux marketplace. And can be selected by the users directly in the Character Studio.</p><p>After the preparation of the dataset, select a base model, and the training could be started on the Crynux network with just one click.</p><p>Note that the base model is not downloaded to the local machine, but is served in the decentralized network. The training task is likely to be dispatched to a node that has the required base model cached for faster execution.</p><p><strong>Generating Images using the combination of the LoRA and base models</strong></p><p>The trained LoRA model is downloaded to the local laptop to be saved. And Character Studio supports generating images using a combination of the local saved LoRA model and a marketplace hosted base model.</p><p>Image generating using the LoRA models from the marketplace is also supported. Users could find the suitable LoRA models (and a pretrained base model) in the marketplace, and use them to generate images directly.</p><p> After the training of a model, the model could be hosted on the Crynux marketplace, to be used by others, for both image generation and fine-tuning.</p><p><strong>One more thing: the image dataset could still make more benefits for the creator.</strong></p><p>Although not implemented in the Character Studio (yet), but the annotated image dataset could make more benefits for the creator thanks to the private data protection technology provided by Crynux.</p><p>The creator could provide the dataset to others, to be used in their training tasks, for profit. The dataset is kept private during the whole process, the original data never leaves the owner&apos;s computer. </p><p>This is a new way for the data owners to make money from their private data, continuously, without the fear of data leakage. And the model developers get more data to produce high quality models.</p>]]></content:encoded></item></channel></rss>