Skip to content

Instantly share code, notes, and snippets.

View hagope's full-sized avatar

Omar Al-Jadda hagope

  • Sunnyvale, CA
View GitHub Profile

Today on Hacker News, the top article was LLaMA2 Chat 70B outperformed ChatGPT linking to a leaderboard of LLMs. As of today, July 27, 2023, the top 10 is as follows:

Model Name Win Rate Length
GPT-4 95.28% 1365
LLaMA2 Chat 70B 92.66% 1790
Claude 2 91.36% 1069
ChatGPT 89.37% 827
WizardLM 13B V1.2 89.17% 1635
Vicuna 33B v1.3 88.99% 1479
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Newsroom-cli default sources</title>
</head>
<body>
<outline type="rss" title="al-arabiya" xmlUrl="https://english.alarabiya.net/feed/rss2/en.xml" />
<outline type="rss" title="al-jazeera" xmlUrl="http://america.aljazeera.com/content/ajam/articles.rss" />
<outline type="rss" title="bbc" xmlUrl="http://feeds.bbci.co.uk/news/rss.xml" />
import torch
cpu = torch.device('cpu')
alloc_size = 16e9
print('Allocating')
x = torch.zeros(int(alloc_size / 8),
dtype=torch.float32,
device=cpu)
print('Pinning')
alias lg='lazygit'
alias vi='~/nvim-linux64/bin/nvim'
export EDITOR=~/nvim-linux64/bin/nvim

A collection of notes and scripts I use to set up my development environment in a new machine, specfically WSL2 terminal.

lazygit:

curl https://gist.githubusercontent.com/hagope/c56734a5ecd6ce1426eeb7f4f1b532ab/raw/48e16788a09affef8322cbd13031b99c0aa07546/git_tools.sh | bash

neovim:

curl https://gist.githubusercontent.com/hagope/0ee68f19028a9e96e2b88e65884e02cc/raw/25803927781ba3b74e5090d476c2f36f24538952/install_nvim.sh | bash
#!/bin/bash
# install lazy git
# https://github.com/jesseduffield/lazygit#ubuntu
sudo add-apt-repository ppa:lazygit-team/release
sudo apt-get update
sudo apt-get install lazygit
# install gh cli
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=79
set expandtab
set autoindent
set number
set fileformat=unix
set list
set listchars=tab:>-
@hagope
hagope / system_test_gsheets.py
Created August 20, 2019 18:27
system test for Airflow gsheets hook, see https://github.com/apache/airflow/pull/5845
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
timestamp,temp_f
2017-04-30 13:05:01,71.375
2017-04-30 13:10:01,71.487
2017-04-30 13:15:01,71.487
2017-04-30 13:20:01,71.600
2017-04-30 13:25:01,71.600
2017-04-30 13:30:01,71.600
2017-04-30 13:35:01,71.713
2017-04-30 13:40:01,71.825
2017-04-30 13:45:01,71.825
timestamp temp_f
2017-04-30 13:05:01 71.375
2017-04-30 13:10:01 71.487
2017-04-30 13:15:01 71.487
2017-04-30 13:20:01 71.600
2017-04-30 13:25:01 71.600
2017-04-30 13:30:01 71.600
2017-04-30 13:35:01 71.713
2017-04-30 13:40:01 71.825
2017-04-30 13:45:01 71.825