Skip to content

Instantly share code, notes, and snippets.

View cvpfus's full-sized avatar
😁
😁😁😁😁

cvpfus cvpfus

😁
😁😁😁😁
View GitHub Profile
#!/usr/bin/env bash
PRETRAINED=${1:-"hpcaitech/grok-1"}
TOKENIZER=${2:-"tokenizer.model"}
while true; do
echo "Enter the text you want to process:"
read USER_TEXT
python3 inference.py --pretrained "$PRETRAINED" \
#!/usr/bin/env bash
PRETRAINED=${1:-"hpcaitech/grok-1"}
TOKENIZER=${2:-"tokenizer.model"}
while true; do
echo "Enter the text you want to process:"
read USER_TEXT
torchrun --standalone --nproc_per_node 8 inference_tp.py --pretrained "$PRETRAINED" \
@cvpfus
cvpfus / Foobar.cs
Last active January 13, 2024 11:33
using System.Text;
namespace FoobarPattern;
public class Foobar
{
private int _patternLength;
private Dictionary<int, string> _patternDict = new();
private StringBuilder _sb = new();