I would suggest you to use conda (Ananconda/Miniconda) to create a separate environment and
install tensorflow-gpu, cudnn and cudatoolkit. Miniconda has a much smaller footprint
than Anaconda. I would suggest you to install Miniconda
if you do not have conda already.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 os; import psutil; import timeit | |
| from datasets import load_dataset | |
| mem_before = psutil.Process(os.getpid()).memory_info().rss >> 20 | |
| wiki = load_dataset("wikipedia", "20200501.en", split='train') | |
| mem_after = psutil.Process(os.getpid()).memory_info().rss >> 20 | |
| print(f"RAM memory used: {(mem_after - mem_before)} MB") | |
| s = """batch_size = 1000 | |
| for i in range(0, len(wiki), batch_size): |
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
| # pip install panel==0.12.4 bokeh==2.4.0 holoviews==1.14.6 hvplot==0.7.3 shapely==1.7.1 | |
| # panel serve holoviz_linked_brushing.py --autoreload --show | |
| import hvplot.pandas | |
| import holoviews as hv | |
| import panel as pn | |
| from bokeh.sampledata.iris import flowers | |
| pn.extension(sizing_mode="stretch_width") | |
| hv.extension("bokeh") |
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
| library(LaCroixColoR) | |
| library(sf) | |
| library(fasterize) | |
| library(rayshader) | |
| library(raster) | |
| library(exactextractr) | |
| library(rayrender) | |
| # load raster into R | |
| elevation <- raster("Olympus_Mons_ortho-image.tif") |
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
| # https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c | |
| [metadata] | |
| name = {name} | |
| version = file: {name}/_version.txt | |
| author = Martin Larralde | |
| author_email = [email protected] | |
| url = https://github.com/althonos/{name} | |
| description = {description} | |
| long_description = file: README.md |
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
| # 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 |
The LLaMA model weights may be converted from Huggingface PyTorch format back to GGML in two steps:
- download from decapoda-research/llama-7b-hf
and save as pytorch
.pth - use the ggerganov/llama.cpp script,
convert-pth-to-ggml.pyto convert from pytorch.pthto GGML
This process will result in ggml model with float16 (fp16) precision.

