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
| # this tutorial assumes conda and git are both installed on your computer | |
| conda create -n tg python=3.10.9 | |
| conda activate tg | |
| pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
| git clone https://github.com/oobabooga/text-generation-webui.git | |
| cd text-generation-webui | |
| pip install -r requirements.txt | |
| # GPU only: |
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
| conda create --name myenv python=3.10.11 | |
| conda activate myenv | |
| conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia | |
| pip install xformers | |
| pip install audiocraft | |
| pip install IPython |
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
| from IPython import display as ipd | |
| from audiocraft.models import musicgen | |
| from audiocraft.utils.notebook import display_audio | |
| import torch | |
| import torchaudio | |
| import os | |
| # Define the output directory | |
| output_dir = r'C:\Users\USER\OneDrive\Desktop\musicgen2' |
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
| conda create --name myenv python=3.10.11 | |
| conda activate myenv | |
| conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia | |
| git clone -b dev https://github.com/camenduru/Text-To-Video-Finetuning | |
| git clone https://huggingface.co/kabachuha/potat1-with-text-encoder-original-format/tree/main | |
| pip install -r requirements.txt | |
| python inference.py -m "C:\Users\USER\Desktop\content\potat1" -p "ducks in a lake" -W 320 -H 320 -o "C:\Users\USER\Desktop\content\Text-To-Video-Finetuning\outputs" -d cuda -x -s 33 -g 23 -f 30 -T 24 |
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 | |
| print(torch.version.cuda) | |
| print(torch.cuda.is_available()) |
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 openai | |
| import os | |
| import subprocess | |
| from github import Github, GithubException | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| def commit_and_push_folder_to_github(github_repo, folder_path): | |
| try: |
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
| ➜ texthub git:(develop) ✗ bundle exec derailed bundle:mem | |
| TOP: 149.5039 MiB | |
| twilio-ruby: 18.0234 MiB | |
| libxml: 1.1563 MiB (Also required by: twilio-ruby/twiml/twiml) | |
| libxml_ruby: 0.3828 MiB | |
| /Users/matthewberman/.rvm/gems/ruby-2.3.0@texthub/gems/twilio-ruby-5.1.1/lib/twilio-ruby/rest/api/v2010/account.rb: 0.3594 MiB | |
| /Users/matthewberman/.rvm/gems/ruby-2.3.0@texthub/gems/twilio-ruby-5.1.1/lib/twilio-ruby/rest/api/v2010/account/call.rb: 0.3242 MiB | |
| rails/all: 16.7695 MiB | |
| active_record/railtie: 7.0156 MiB | |
| active_record: 5.7773 MiB (Also required by: multidb, orm_adapter/adapters/active_record) |
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
| class SegmentService | |
| # method_name must be a symbol | |
| # def initialize(user, method_name, method_args = nil) | |
| # binding.pry | |
| # @user = user | |
| # @company = @user.company | |
| # @analytics_uuid = @user.analytics_uuid | |
| # send(method_name, method_args) | |
| # # wrap the entire SegmentService in a rescue so if SegmentService fails | |
| # # for whatever reason, our other code doesn't fail |
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
| class AwayMessagesWorker | |
| include Sidekiq::Worker | |
| include Sidetiq::Schedulable | |
| sidekiq_options retry: false | |
| recurrence { secondly(10) } | |
| def perform | |
| redis_away_lock_key = 'away_messaging' |
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
| [3155257, | |
| 3155326, | |
| 3175384, | |
| 3364331, | |
| 3364450, | |
| 3364462, | |
| 3364641, | |
| 3366279, | |
| 3366306, | |
| 3367398, |