Skip to content

Instantly share code, notes, and snippets.

View JackSullivan's full-sized avatar

Jack Sullivan JackSullivan

  • Oracle
  • Arlington, MA
View GitHub Profile
Java == EntrepriseQuality; // this will fail
Java.equals(AbstractEnterpriseQualityFactory.getInstance().create(DefaultEnterpriseQualityImpl.class)); // prefer this
""" An rbm implementation for TensorFlow, based closely on the one in Theano """
import tensorflow as tf
import math
def sample_prob(probs):
"""Takes a tensor of probabilities (as from a sigmoidal activation)
and samples from all the distributions"""
return tf.nn.relu(
tf.sign(
@JackSullivan
JackSullivan / llm-ls.log
Created December 11, 2023 17:23
Nix Log for failing llm-ls /nix/store/x8gpbyk8fsgja2s4w26dvf61qwsfdajk-llm-ls-0.4.0.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/hww6jkx7zci7n6wp733ypjmdwmkl7sva-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/g4v19p2nn5sg2r22lm07ps1zkrl90rp2-llm-ls-0.4.0-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
@JackSullivan
JackSullivan / llm-ls.log
Created December 13, 2023 16:40
faayb3jbysw2sxn5gzxs9j6chmyd8kcv-llm-ls-0.4.0 log
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/hww6jkx7zci7n6wp733ypjmdwmkl7sva-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/g4v19p2nn5sg2r22lm07ps1zkrl90rp2-llm-ls-0.4.0-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
Executing cargoSetupPostPatchHook