Free Hermes Machine Learning ai.unturf.com & uncloseai.js
################################################################

:author: Russell Ballestrini
:slug: free-hermes-ai-unturf-com-uncloseai
:date: 2024-10-21 20:52
:tags: Code, DevOps, Machine Learning, Python
:status: published

Hey all I created `ai.unturf.com <https://ai.unturf.com>`_ and `uncloseai.js <https://uncloseai.com/uncloseai.js>`_ over the past two weeks & this post introduces them to make Machine Learning more accessible to everyone.

The Machine Learning service is powered by the model Nous Research's `adamo1139/Hermes-3-Llama-3.1-8B-FP8-Dynamic <https://nousresearch.com/hermes3/">`_. Our mission is to provide accessible Machine Learning tools for everyone, embodying the principles of both free as in beer & free as in freedom. You can interact with our model without any cost, and we encourage to contributions and building upon the open-source code & models.

One of the key features of ai.unturf.com is its compatibility with various programming languages. We provide examples in Python and Node.js, allowing developers to easily integrate our Machine Learning service into their applications. Moreover, we offer a web-client only solution using uncloseai.js, which enables static sites or CDNs hosting HTML content to interact with Machine Learning services directly from the browser without the need for an intermediary server/client. This approach eliminates the requirement for a valid API key, making it an efficient and accessible option for thin clients often on battery.

To demonstrate the ease of use of our Machine Learning service, here is a cURL example:

.. code-block:: bash

  curl -X POST -H "Content-Type: application/json" -d '{
      "prompt": "Give a Python Fizzbuzz solution in one line of code",
      "model": "adamo1139/Hermes-3-Llama-3.1-8B-FP8-Dynamic",
      "temperature": 0.5,
      "max_tokens": 150
  }' https://hermes.ai.unturf.com/v1/completions

Also the coolest part is we found that because we don't require a valid API key, a tiny bit of javascript goes a long way to create a web client-only solution which is great for static sites and CDNs.

In this demo architecture, the browser serves as the client, directly interacting with the Machine Learning service without the need for an intermediary server/client.

By using uncloseai.js, developers can create thin clients on battery-powered devices, making Machine Learning more accessible and efficient.

Here is the HTML we needed to add to _this_ site, to make it work:

.. code-block:: html

  <script src="https://uncloseai.com/uncloseai.js" type="module"></script>

That's it! This single line provides a floating Machine Learning assistant button with page-aware contextual help, text-to-speech functionality, translation capabilities, conversation history storage, and compatibility with any CSS framework.

I invite you to explore the service for yourself. Consider using it as is or building your own app/client. Let's make Machine Learning more accessible and create a world where everyone can benefit from its power.

Before you go, if you want to try it out live on this static site, `click here <#uncloseai-example>`_ and and ask a question about the post. it knows how to code. : )

.. contents::
