by Glenn Matlin / glennmatlin on all socials
- Download and copy all files in this gist to
~/.claude/ - Move the
.pyfiles to~/.claude/hooks - Restart Claude Code.
| # Project Policy | |
| This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices. | |
| # 1. Introduction | |
| > Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities. | |
| ## 1.1 Actors |
| """ To use: install Ollama, clone OpenVoice, run this script in the OpenVoice directory | |
| brew install portaudio | |
| brew install git-lfs | |
| git lfs install | |
| git clone https://github.com/myshell-ai/OpenVoice | |
| cd OpenVoice | |
| git clone https://huggingface.co/myshell-ai/OpenVoice | |
| cp -r OpenVoice/* . | |
| """ To use: install LLM studio (or Ollama), clone OpenVoice, run this script in the OpenVoice directory | |
| git clone https://github.com/myshell-ai/OpenVoice | |
| cd OpenVoice | |
| git clone https://huggingface.co/myshell-ai/OpenVoice | |
| cp -r OpenVoice/* . | |
| pip install whisper pynput pyaudio | |
| """ | |
| from openai import OpenAI | |
| import time |
| from transformers import AutoTokenizer, T5ForConditionalGeneration | |
| # Model Init | |
| n_gpu = 8 | |
| tokenizer = AutoTokenizer.from_pretrained("google/flan-ul2") | |
| model = T5ForConditionalGeneration.from_pretrained("google/flan-ul2") | |
| heads_per_gpu = len(model.encoder.block) // n_gpu | |
| device_map = { | |
| gpu: list( | |
| range( |
| # Sebastian Raschka 09/24/2022 | |
| # Create a new conda environment and packages | |
| # conda create -n whisper python=3.9 | |
| # conda activate whisper | |
| # conda install mlxtend -c conda-forge | |
| # Install ffmpeg | |
| # macOS & homebrew | |
| # brew install ffmpeg | |
| # Ubuntu |