Skip to content

Instantly share code, notes, and snippets.

View zeke's full-sized avatar
🍊
Busy! @-message me directly if I'm slow to respond.

Zeke Sikelianos zeke

🍊
Busy! @-message me directly if I'm slow to respond.
View GitHub Profile
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
wget "https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/${MODEL}"
@zeke
zeke / list_page_calls
Created March 6, 2012 04:11
word_and_list_page_api_calls
wordList.json/funny-laughter-words
wordList.json/funny-laughter-words/comments?limit=1000&sortBy=createDate&sortOrder=desc
wordList.json/funny-laughter-words/words?limit=1000&sortBy=createDate&sortOrder=asc
wordList.json/funny-laughter-words/wordsCount
wordList.json/funny-laughter-words/isFavorite?username=zeke
title authors intro published_at
Hello, world!
evilstreak, zeke
We are saying hello to the world with this blog post.
2022-05-16

Markdown goes here. Post title will be an H1.

Something else

static.ak.fbcdn.net 1182
www.imdb.com 803
cdn.apture.com 790
www.forever21.com 495
www.facebook.com 366
www.google.com 344
www.google.co.in 290
sniphr.com 266
www.youtube.com 246
s7.addthis.com 182
@zeke
zeke / buttons.coffee
Created March 3, 2012 05:16 — forked from mathias/buttons.coffee
Haml + Coffeescript Tweet button and Like button
((d, s, id) ->
js = undefined
fjs = d.getElementsByTagName(s)[0]
return if d.getElementById(id)
js = d.createElement(s)
js.id = id
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"
fjs.parentNode.insertBefore js, fjs
) document, "script", "facebook-jssdk"
@zeke
zeke / cog-predictor-with-multiple-outputs.py
Created May 12, 2022 20:44
A contrived example of a Cog predictor that produces multiple outputs
# https://github.com/replicate/cog/blob/main/docs/python.md#output
from cog import BasePredictor, BaseModel, File
class Output(BaseModel):
image: File
coords: str
class Predictor(BasePredictor):
def predict(self, source_image: Path = Input(description="Image in which to detect objects")) -> Path:
~/git/arxiv/arxiv-browse develop*
arxiv-browse $ pyenv install 3.6.15
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Installing Python-3.6.15...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 11.5.2 using python-build 20180424)
baakha
baakhe
baakhi
baakho
baakhu
baekha
baekhe
baekhi
baekho
baekhu
# The predictions table is called models_prediction
# The users table is called users_user
# Select all predictions where the user id is equal to the user with username 'zeke'
SELECT * FROM models_prediction WHERE user_id = (SELECT id FROM users_user WHERE username = 'zeke');
# Count all predictions where the user id is equal to the user with username 'zeke'
SELECT COUNT(*) FROM models_prediction WHERE user_id = (SELECT id FROM users_user WHERE username = 'zeke');
/vendor/gems/2.7.1/ruby/2.7.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:34:in `require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:332:in `block in require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:299:in `load_dependency'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/activesupport-7.0.0.alpha.9d34ed7/lib/active_support/dependencies.rb:332:in `require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/gettext_i18n_rails-1.8.1/lib/gettext_i18n_rails/tasks.rb:1:in `<top (required)>'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
app/vendor/gems/2.7.1/ruby/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
app/vendor/gems/2.7.1/ruby