Skip to content

Instantly share code, notes, and snippets.

@Mistobaan
Mistobaan / langchain_llamacpp_natural_functions.ipynb
Last active March 19, 2024 22:08
langchain_llamacpp_natural_functions.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / eval-gsm8k-microsoft-phi-2-colab.ipynb
Last active January 28, 2024 01:31
eval-gsm8k-microsoft-phi-2-colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / ngrok_util.py
Last active January 4, 2024 07:56
How to get current ngrok remote url
# from: https://stackoverflow.com/a/54088479/121687
import json
import requests
def get_ngrok_url():
url = "http://localhost:4040/api/tunnels/"
res = requests.get(url)
res_unicode = res.content.decode("utf-8")
res_json = json.loads(res_unicode)
@Mistobaan
Mistobaan / deploy_dolly_v2.ipynb
Created April 29, 2023 18:08 — forked from timesler/deploy_dolly_v2.ipynb
Deploy Dolly v2.0 to SageMaker
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from graphviz import Digraph
import torch
from torch.autograd import Variable, Function
def iter_graph(root, callback):
queue = [root]
seen = set()
while queue:
fn = queue.pop()
if fn in seen:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / aws_mfa_login.py
Created August 11, 2021 23:17
Configure AWS default profile to use the MFA token enabled credentials
#!/bin/env python
import sys
import os
import shlex
import subprocess
import json
import configparser
import argparse
@Mistobaan
Mistobaan / decomposepromptsimple.ipynb
Created August 13, 2020 07:05 — forked from brockmanmatt/decomposepromptsimple.ipynb
DecomposePromptSimple.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / introtologprobs.ipynb
Created August 13, 2020 07:03 — forked from brockmanmatt/introtologprobs.ipynb
introToLogProbs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mistobaan
Mistobaan / defaultapinotebook.ipynb
Created August 13, 2020 07:01 — forked from brockmanmatt/defaultapinotebook.ipynb
defaultapinotebook.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.