Skip to content

Instantly share code, notes, and snippets.

View potatoqualitee's full-sized avatar
big permz energy

Chrissy LeMaire potatoqualitee

big permz energy
View GitHub Profile

To use the DCLM-7B model on Jan.ai, follow these steps:

  1. Install the Required Tools: Ensure you have the necessary tools installed. You might need packages like transformers and open_lm. You can install them using:

    pip install git+https://github.com/mlfoundations/open_lm.git transformers
  2. Download the Model: Integrate the DCLM-7B model from Hugging Face with Jan.ai:

Loading and unloading models is a common practice in both machine learning (ML) and artificial intelligence (AI) applications, especially when dealing with large-scale or resource-intensive models.

In the context of this VS Code extension, the term "AI models" is used, but it encompasses both machine learning and artificial intelligence models. Machine learning is a subset of AI that focuses on enabling computers to learn and improve from experience without being explicitly programmed. AI, on the other hand, is a broader field that includes machine learning and other techniques to create intelligent systems.

The need to load and unload models arises due to several reasons:

  1. Resource Management: AI and ML models can be computationally expensive and consume significant amounts of memory. When multiple models are available, loading all of them simultaneously may exceed the available system resources. By selectively loading and unloading models, the extension can manage resource usage efficiently and ensure
@potatoqualitee
potatoqualitee / function-calling.ipynb
Created April 22, 2024 21:06 — forked from kylemcdonald/function-calling.ipynb
Example of OpenAI function calling API to extract data from LAPD newsroom articles.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@potatoqualitee
potatoqualitee / function_calling.json
Created April 21, 2024 20:53
function_calling.json
[
{
"type": "function",
"function": {
"name": "Invoke-DbaQuery",
"description": "Use this function to answer user questions about Northwind. Input should be a fully formed SQL query.",
"parameters": {
"properties": {
"Query": {
"type": "string",
@potatoqualitee
potatoqualitee / bean-labeler.ts
Created March 16, 2024 20:09 — forked from haileyok/bean-labeler.ts
Bean Auto Labeler
import {
AppBskyEmbedImages,
AppBskyFeedPost,
BskyAgent,
} from '@atproto/api'
import * as dotenv from 'dotenv'
import {ComAtprotoSyncSubscribeRepos, subscribeRepos, SubscribeReposMessage} from 'atproto-firehose'
import Anthropic from '@anthropic-ai/sdk'
import axios from 'axios'
Begin trace logging for SharePoint Products Configuration Wizard. Version 16.0.14326.20450
11/29/2023 13:20:01 1 INF Entering function PsconfigUserInterfaceMain.Main
11/29/2023 13:20:01 1 INF Entering function Common.SetCurrentThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF Entering function Common.SetThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF Current thread culture is English (United States), current thread ui culture is English (United States), installed culture is English (United States)
11/29/2023 13:20:01 1 INF Leaving function Common.SetThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF The current ui culture English (United States) is NOT right to left
11/29/2023 13:20:01 1 INF Leaving function Common.SetCurrentThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF Creating the psconfig application context
11/29/2023 13:20:01 1 INF Entering function PsconfigApplicationContext.PsconfigApplicationContext
@potatoqualitee
potatoqualitee / swagger.json
Created November 28, 2022 18:47
swagger.json
{
"openapi": "3.0.0",
"info": {
"title": "Mastodon API",
"description": "This an attempt to document Mastodon's API based on the code in https://github.com/mastodon/mastodon",
"contact": {
"name": "Malcolm VanOrder",
"email": "mvanorder1390@gmail.com"
},
"license": {
@potatoqualitee
potatoqualitee / encryption-commands.md
Created November 16, 2022 12:12
Encryption Commands

Thanks for attending the session! Here are all of our related security commands:

Add-DbaComputerCertificate              
Backup-DbaComputerCertificate           
Backup-DbaDbCertificate                 
Backup-DbaDbMasterKey                   
Backup-DbaServiceMasterKey              
Disable-DbaDbEncryption                 
Disable-DbaForceNetworkEncryption       
@potatoqualitee
potatoqualitee / winterm.json
Created September 22, 2022 11:13
winterm.json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@potatoqualitee
potatoqualitee / Invoke-Program.ps1
Created September 7, 2022 12:59
Invoke-Program
function Invoke-Program {
[CmdletBinding()]
[OutputType([System.Management.Automation.PSObject])]
param
(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$FilePath,
[Parameter()]