Skip to content

Instantly share code, notes, and snippets.

View x51xxx's full-sized avatar

Taras Trishchuk x51xxx

View GitHub Profile
// Example of using tools with Ollama and Langchain,
// rewrite the original example of https://github.com/ollama/ollama-js/blob/main/examples/tools/tools.ts
//
/**
* Ollama now supports tool calling with popular models such as Llama 3.1, Mistral-Nemo, etc.(https://ollama.com/search?c=tools)
* This enables a model to answer a given prompt using tool(s) it knows about,
* making it possible for models to perform more complex tasks or interact with the outside world.
*
@x51xxx
x51xxx / MEMO
Created October 14, 2023 12:48 — forked from AlkindiX/MEMO
Run machine learning on 7900XT and 7900XTX on PyTorch
Requirements:-
1. Ubuntu 22.04
2. 7900XT or 7900XTX
Pre-requests before making any installation.
Follow step 1-3 if you installed amdgpu.
1. If you already installed redeon graphic card driver from AMD using amdgpu-install. Completely remove the driver
and connect your HDMI to motherboard. Then restart your PC
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.