Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
@kalomaze
kalomaze / local_llm_glossary.md
Last active April 19, 2024 02:35
Local LLM Glossary v2

Kalomaze's Local LLM Glossary

Not super comprehensive (yet), but I think having up to date documentation like this should be quite helpful for those out of the loop. Things change all the time in local AI circles, and it can be dizzying to catch up from an outsider's perspective, especially if you are new to the more technical aspects of language models in general (and not just locally hosted LLMs).

Available Models

Llama

  • A language model series created by Meta. Llama 1 was originally leaked in February 2023; Llama 2 then officially released later that year with openly available model weights & a permissive license. Kicked off the initial wave of open source developments that have been made when it comes to open source language modeling. The Llama series comes in four distinct sizes: 7b, 13b, 34b (only Code Llama was released for Llama 2 34b), and 70b. As of writing, the hotly anticipated Llama 3 has yet to arrive.

Mistral

  • Mistral AI is a French company that also distributes open weight
@steedalot
steedalot / cloud_multifiledownload.user.js
Last active January 16, 2024 14:58
Ermöglicht das Herunterladen einer kompletten Ordnerstruktur im alten Dateibereich der Bildungscloud
// ==UserScript==
// @name Bildungscloud Ordner Download
// @version 0.6
// @description Herunterladen einner kompletten Ordnerstruktur im Dateibereich der Bildungscloud
// @author Daniel Gaida, N-21
// @match https://niedersachsen.cloud/files/*
// @match https://schulcloud-thueringen.de/files/*
// @match https://brandenburg.cloud/files/*
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
@padeoe
padeoe / README_hfd.md
Last active April 23, 2024 06:56
CLI-Tool for download Huggingface models and datasets with aria2/wget+git

🤗Huggingface Model Downloader

Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, this command-line tool smartly utilizes wget or aria2 for LFS files and git clone for the rest.

Features

  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
  • 🚀 Multi-threaded Download: Utilize multiple threads to speed up the download process.
  • 🚫 File Exclusion: Use --exclude or --include to skip or specify files, save time for models with duplicate formats (e.g., *.bin or *.safetensors).
  • 🔐 Auth Support: For gated models that require Huggingface login, use --hf_username and --hf_token to authenticate.
  • 🪞 Mirror Site Support: Set up with HF_ENDPOINT environment variable.
@mathix420
mathix420 / medium.user.js
Last active April 23, 2024 13:50
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.3
// @inject-into content
@forkyau
forkyau / hourly_rainfall_data-2023-09-05|10-00.csv
Created September 5, 2023 02:21
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
1 湿地公园 RF002 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
2 水边围 N12 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
3 石岗 RF003 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
4 大美督 RF004 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
5 大埔墟 RF005 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
6 北潭涌 RF006 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
7 滘西洲 RF007 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
8 西贡 N15 0 mm 2023-09-05T10:00:00+08:00 2023-09-05
@lyc8503
lyc8503 / aliyun_ddns.py
Last active November 3, 2023 10:28
阿里云 DDNS Python
#!/usr/bin/python3
import json
from hashlib import sha1
import hmac
import base64
import datetime
import urllib.parse
from urllib.error import HTTPError
from urllib.request import urlopen
import os
@veekaybee
veekaybee / normcore-llm.md
Last active April 23, 2024 16:03
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@mapmeld
mapmeld / llama2-langchain.py
Last active February 2, 2024 16:22
llama2-langchain
# this should run on a GPU CoLab notebook
# pip install langchain xformers transformers datasets bitsandbytes accelerate --quiet
# get access to the meta-llama models, accept license, and get a read token
hf_auth = '######'
from langchain.chains import ConversationChain
from langchain.llms import HuggingFacePipeline
from langchain.memory import ConversationSummaryBufferMemory
from langchain.prompts.prompt import PromptTemplate
@wilinz
wilinz / ms-edge-tts-api.md
Last active April 2, 2024 09:55
微软edge-tts-api(大声朗读协议)
@bodaay
bodaay / gethfd.sh
Created June 25, 2023 16:07
HuggingFace Model Downloader
#!/bin/bash
args=${@:1} # Capture user-provided arguments
os=$(uname -s | tr '[:upper:]' '[:lower:]')
arch=$(uname -m | tr '[:upper:]' '[:lower:]')
if [ "$arch" = "x86_64" ]; then
arch="amd64"
fi