- Get an API key from https://aistudio.google.com/apikey
- Place
ask-gemini.shat.claude/ask-gemini.sh - Place
ask-gemini.mdat.claude/commands/ask-gemini.sh - In
claude, type something like/ask-gemini Are there any bugs in this code base?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| while [ "$#" -gt 0 ]; do | |
| case "$1" in | |
| --include-tests) | |
| INCLUDE_TESTS=1 | |
| ;; | |
| --include-docs) | |
| INCLUDE_DOCS=1 | |
| ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| srun: Setting --cpu-bind=threads as a default of --threads-per-core use | |
| srun: Following options are mutually exclusive with --hint: --ntasks-per-core, --threads-per-core, -B and --cpu-bind, but more than one set by environment variables. Ignoring SLURM_HINT. | |
| srun: defined options | |
| srun: -------------------- -------------------- | |
| srun: (null) : nid006341 | |
| srun: cpus-per-task : 1 | |
| srun: gpus-per-task : 1 | |
| srun: jobid : 8963660 | |
| srun: job-name : AISPECS | |
| srun: mem : 64G |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| srun: Setting --cpu-bind=threads as a default of --threads-per-core use | |
| srun: Following options are mutually exclusive with --hint: --ntasks-per-core, --threads-per-core, -B and --cpu-bind, but more than one set by environment variables. Ignoring SLURM_HINT. | |
| srun: defined options | |
| srun: -------------------- -------------------- | |
| srun: (null) : nid005145 | |
| srun: cpus-per-task : 1 | |
| srun: gpus-per-task : 1 | |
| srun: jobid : 8963150 | |
| srun: job-name : AISPECS | |
| srun: mem : 64G |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| srun: Setting --cpu-bind=threads as a default of --threads-per-core use | |
| srun: Following options are mutually exclusive with --hint: --ntasks-per-core, --threads-per-core, -B and --cpu-bind, but more than one set by environment variables. Ignoring SLURM_HINT. | |
| srun: defined options | |
| srun: -------------------- -------------------- | |
| srun: (null) : nid005143 | |
| srun: cpus-per-task : 1 | |
| srun: gpus-per-task : 1 | |
| srun: jobid : 8934799 | |
| srun: job-name : AISPECS | |
| srun: mem : 64G |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use anyhow::{Error, Result}; | |
| use candle::{DType, Device, Tensor}; | |
| use candle_nn::VarBuilder; | |
| use candle_transformers::generation::{LogitsProcessor, Sampling}; | |
| use candle_transformers::models::llama::Cache; | |
| use candle_transformers::models::llama::Llama; | |
| use candle_transformers::models::llama::LlamaConfig; | |
| use candle_transformers::models::llama::LlamaEosToks; | |
| use hf_hub::{api::sync::Api, Repo, RepoType}; | |
| use tokenizers::Tokenizer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (datatype Expr | |
| ; Arithmetic | |
| (Num i64) | |
| (Add Expr Expr :cost 1) | |
| (Sub Expr Expr) | |
| (Mul Expr Expr :cost 10) | |
| (Div Expr Expr) | |
| (Pow Expr Expr) | |
| (Mod Expr Expr) | |
| (Log10 Expr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (datatype Expr | |
| ; Arithmetic | |
| (Num i64) | |
| (Add Expr Expr) | |
| (Var String) | |
| (Let String Expr Expr)) | |
| (function path (Expr Expr) i64 :merge (min old new)) | |
| (function edge (Expr Expr) i64 :merge (min old new)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "csv-bids-deserializer" | |
| version = "0.1.0" | |
| edition = "2021" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| tokio = { version = "1.34.0", features = ["full"] } | |
| serde = { version = "1.0.192", features = ["derive"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import onnxruntime as ort | |
| from PIL import Image | |
| import numpy as np | |
| import torchvision.transforms as transforms | |
| from torchvision.transforms.functional import InterpolationMode | |
| import json | |
| import urllib.request | |
| from PIL import ImageOps |
NewerOlder