Skip to content

Instantly share code, notes, and snippets.

@rofinn
rofinn / compose.yml
Last active August 14, 2024 04:25
WebUI NIM RAG Demo
services:
nim:
image: nvcr.io/nim/meta/llama3-8b-instruct:1.0.0
# Directory for storage cached models (for faster restarts)
# We'll pull this from NFS for our example
volumes:
- ./data/nim:/opt/nim/.cache:rw
# Set the NGC_CLI_API_KEY environment variable, so that the container can download models
env_file:
@rofinn
rofinn / Manifest.toml
Created November 29, 2021 21:39
Impute.jl Issue #124 Environment
# This file is machine-generated - editing it directly is not advised
[[AbstractFFTs]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "485ee0867925449198280d4af84bdb46a2a404d0"
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
version = "1.0.1"
[[ArgTools]]
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
in parse_ineq at /root/.julia/v0.4/JuliaParser/src/parser.jl:375
in parse_arrow at /root/.julia/v0.4/JuliaParser/src/parser.jl:372
in parse_and at /root/.julia/v0.4/JuliaParser/src/parser.jl:369
in parse_cond at /root/.julia/v0.4/JuliaParser/src/parser.jl:254
in parse_Nary at /root/.julia/v0.4/JuliaParser/src/parser.jl:284
in parse_comma at /root/.julia/v0.4/JuliaParser/src/parser.jl:363
in parse_eq at /root/.julia/v0.4/JuliaParser/src/parser.jl:353
in parse_Nary at /root/.julia/v0.4/JuliaParser/src/parser.jl:315
in parse_resword at /root/.julia/v0.4/JuliaParser/src/parser.jl:987
in parse_call at /root/.julia/v0.4/JuliaParser/src/parser.jl:608
@rofinn
rofinn / mapping.jl
Created April 7, 2015 23:19
Julialang DataFrame & Matrix mappings
@doc doc"""
Takes a 2d array where each column is a pattern which maps to a row in
the resulting dataframe. Each pattern index is its own column in
the dataframe.
""" ->
function DataFrame(data::Array{Float64, 2})
m = data'
result = DataFrame()
for i in 1:size(data, 1)
@rofinn
rofinn / Bootstrap log
Last active August 29, 2015 14:17
Bootstrap-vz ec2 hvm manifest
[760.422945023] DEBUG: Loading provider bootstrapvz.providers.ec2
[847.099065781] DEBUG: Loading plugin bootstrapvz.plugins.ansible
[4359.05194283] DEBUG: Tasklist:
bootstrapvz.plugins.ansible.tasks.CheckPlaybookPath
bootstrapvz.common.tasks.locale.LocaleBootstrapPackage
bootstrapvz.providers.ec2.tasks.host.GetInstanceMetadata
bootstrapvz.providers.ec2.tasks.host.AddExternalCommands
bootstrapvz.providers.ec2.tasks.connection.GetCredentials
bootstrapvz.common.tasks.bootstrap.AddRequiredCommands
bootstrapvz.common.tasks.workspace.CreateWorkspace