Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$has_disclaimer is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_lock is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_last is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_meta_box_present is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_send_notification is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_modify_title_and_content is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_notification_custom_heading is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_notification_custom_content is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_focuskw is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_linkdex is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_content_score is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_estimated-reading-time-minutes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_wordproof_timestamp is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$tipologia is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_tipologia is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$attributi is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_attributi is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$in_evidenza_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_in_evidenza_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$inviato_in_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_inviato_in_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$fonte is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_fonte is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$fonte_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_fonte_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_category is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_blz_affiliation_attributes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_content_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_attributes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_speciali is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$response_body is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_oembed_5e079271cebb2aad7b595ad5a79c1302 is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_oembed_time_5e079271cebb2aad7b595ad5a79c1302 is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
LLM: intelligenza artificiale e chatbot in locale con interfaccia grafica

LLM: intelligenza artificiale e chatbot in locale con interfaccia grafica

Da oggi è possibile interagire con i più potenti LLM open source dal proprio PC. Usare un potente chatbot basato sull'intelligenza artificiale e dotato di interfaccia grafica non è mai stato così semplice.

I modelli generativi open source stanno democratizzando la possibilità di accedere al potenziale offerto dall’intelligenza artificiale anche con i “normali” dispositivi in possesso degli utenti, senza doversi più appoggiare al cloud e senza trasferire dati a soggetti terzi. I progetti incentrati sui migliori LLM ormai non si contano più e da qualche tempo è diventato possibile creare e utilizzare i propri chatbot, capaci di funzionare in ambito locale.

LLM: cosa sono e come funzionano

I Large Language Models (LLM) sono modelli di linguaggio addestrati su grandi quantità di dati testuali per apprendere e “comprendere” il linguaggio naturale. Questi modelli appartengono alla categoria più ampia di modelli di apprendimento automatico noti come “modelli di trasformazione”.

Per la fase di addestramento degli LLM, si utilizzano vasti dataset testuali provenienti da una varietà di fonti, come libri, articoli di notizie, pagine Web e molto altro ancora. L’obiettivo è far acquisire al modello una “consapevolezza” approfondita delle peculiarità e delle relazioni che caratterizzano ogni lingua. Successivamente, i modelli vengono raffinati utilizzando dataset più specifici e utili a gestire compiti particolari.

L’architettura di trasformazione e, in particolare, i Transformer, consentono al modello di elaborare sequenze di dati in modo bidirezionale. Il modello può cioè considerare il contesto delle parole in una frase, sia prima che dopo il termine specifico che sta analizzando. Ne deriva una migliore comprensione del significato che si basa comunque su un approccio probabilistico, non deterministico.

La dimensione degli LLM è spesso definita dal numero molto elevato di parametri appresi durante l’addestramento. I parametri si riferiscono ai pesi e ai bias appresi dal modello: essi ne determinano il comportamento ai dati ricevuti in input.

I pesi sono assegnati a ciascun collegamento tra i nodi di due strati consecutivi in una rete neurale. Ogni collegamento tra i nodi ha un peso associato che indica l’importanza della connessione. Durante l’addestramento, il modello cerca di ottimizzare i pesi per minimizzare l’errore tra le sue previsioni e i risultati attesi dall’utente. Il bias è un termine aggiunto all’output di ciascun nodo della rete neurale: consente di spostare l’output, influenzando il comportamento del modello.

Utilizzare in locale i migliori LLM, con un’interfaccia grafica

Tanti progetti open source permettono di realizzare il proprio ChatGPT in locale e sfruttare il codice per integrare l’intelligenza artificiale in una moltitudine di progetti, anche a livello professionale e aziendale.

LM Studio

LM Studio, scaricabile dal sito ufficiale, è uno strumento che offre la possibilità di accedere a tanti LLM ospitati su Hugging Face. Sono esplicitamente citati LLaMa, Falcon, MPT, StarCoder, Replit e GPT-Neo-X ma qualunque modello convertito in formato GGUF risulta utilizzabile con LM Studio.

Hugging Face è una piattaforma open source che mira a far progredire le soluzioni di intelligenza artificiale attraverso un approccio aperto. La piattaforma offre un’ampia gamma di modelli di intelligenza artificiale, dataset e applicazioni, consentendo alla comunità di collaborare e innovare.  Il formato GGUF è utilizzato per memorizzare modelli destinati all’inferenza, specialmente nel contesto di modelli linguistici come GPT (Generative Pre-trained Transformer).

LM Studio

LM Studio è già disponibile nelle versioni per Windows, macOS e Linux anche se il progetto è indicato come instabile e suscettibile di continue migliorie.

L’immagine, tuttavia, offre un’idea di ciò è possibile ottenere con LM Studio: da un’unica finestra si può scegliere il LLM preferito, modificarne le opzioni quindi avviare una sessione di chat senza appoggiarsi ad alcun servizio cloud.

Ollama Web UI

Per mettersi alle spalle la fredda finestra del terminale di Ollama, altrimenti detta CLI (command line interface), è possibile installare Ollama Web GUI. Si tratta di un componente software aggiuntivo che si posiziona al di sopra di Ollama e che permette di avviare conversazioni in linguaggio naturale con qualunque LLM supportato, ad esempio Mistral, LLama, Code LLama, Orca Mini e Vicuna.

Ollama Web UI

Ollama Web UI rappresenta un passo avanti nell’interazione con modelli linguistici probabilistici, offrendo un’esperienza utente avanzata e versatile. L’interfaccia risponde alle esigenze degli utenti di dispositivi desktop e mobili, garantendo un’esperienza fluida sulle varie piattaforme.

L’installazione di Ollama Web UI è resa semplice grazie al setup intuitivo basato su Docker: vi è la possibilità di installare sia Ollama che Ollama Web UI con un singolo comando.

Una caratteristica distintiva è l’evidenziazione della sintassi, che migliora la leggibilità del codice generato dal modello. Il supporto Markdown e LaTeX consente agli utenti di arricchire le loro interazioni con la formattazione avanzata, aprendo nuove modalità di comunicazione.

Sul Web sono disponibili anche progetti basati sui soliti modelli che, tuttavia, permettono di interagire con personaggi famosi o immaginari: Faraday, koboldcpp e SillyTavern sono alcuni nomi interessanti.

Credit immagine in apertura: iStock.com/Vertigo3d

I 5 prodotti TOP del Black Friday di Amazon

[parse_card link=”https://www.amazon.it/dp/B08XQH5539?tag=booBLZTRKood&linkCode=ogi&th=1&psc=1″ program=”amazon” format_id=”4600″]TicWatch GTH Smartwatch Orologio Intelligente, durata della batteria fino a 10 giorni con misurazione della temperatura della pelle,monitoraggio della frequenza ardiaca con ossigeno nel sangue,5ATM[/parse_card]

[parse_card link=”https://www.amazon.it/dp/B06XFS8NFB?tag=booBLZTRKood&linkCode=ogi&th=1&psc=1″ program=”amazon” format_id=”4600″]Yankee Candle Candela Profumata In Giara Grande, Durata Fino A 150 Ore, 10.7 X 10.7 X 16.8 Cm[/parse_card]

[parse_card link=”https://www.amazon.it/dp/B091G3WT74?tag=booBLZTRKood&linkCode=ogi&th=1&psc=1″ program=”amazon” format_id=”4600″]Amazon Fire TV Stick Lite con telecomando vocale Alexa | Lite, il nostro lettore multimediale HD più conveniente[/parse_card]

[parse_card link=”https://www.amazon.it/dp/B0C341D8RJ?tag=booBLZTRKood&linkCode=ogi&th=1&psc=1″ program=”amazon” format_id=”4600″]Leyrica Zaino da Viaggio per Ryanair/Wizzair 40x20x25 Bagaglio a Mano Unisex Borse da Cabina Zaino per Laptop 15.6 pollici Daypack Casual Zaino Università Zaino Lavoro Impermeabile.[/parse_card]

[parse_card link=”https://www.amazon.it/dp/B0B8MFHTBV?tag=booBLZTRKood&linkCode=ogi&th=1&psc=1″ program=”amazon” format_id=”4600″]HOTO Set di Cacciaviti, Mini Set di Cacciaviti di Precisione 24 in 1 con Punte in Acciaio S2 Resistenti da 24 Pezzi, Ideali per Elettronica, Occhiali e Bracciali, Grigio Ardesia – P1[/parse_card]

Ti consigliamo anche

Link copiato negli appunti