start new:
tmux
start new with session name:
tmux new -s myname
import llama_cpp | |
import re | |
import json | |
# Model configuration | |
# tested with mistral, llama2, llama3, and phi3 | |
model_path = "/path/to/model" | |
base_llm = llama_cpp.Llama(model_path, seed=42, n_gpu_layers=-1, n_ctx=4096, verbose=False, temperature=0.0) |
#!/bin/bash | |
## Lubuntu (Ubuntu 16.04 gave me error when tried to install curl using apt-gt | |
# | |
## sudo apt-get install curl | |
# Reading package lists... Done | |
# Building dependency tree | |
# Reading state information... Done | |
# Package curl is not available, but is referred to by another package. | |
# This may mean that the package is missing, has been obsoleted, or |
#!/usr/bin/env python3 | |
""" | |
Human quality transcripts from audio files using | |
AssemblyAI for transcription and Google's Gemini for enhancement. | |
Requirements: | |
- AssemblyAI API key (https://www.assemblyai.com/) | |
- Google API key (https://aistudio.google.com/) | |
- Python packages: assemblyai, google-generativeai, pydub |
Assuming the following:
http://example.com/dav/
user
pass
curl options:
-u username:password
use HTTP Basic authorization with the folowing username and password-X GET
send a request with GET method. You can use any other methods here.What is strict aliasing? First we will describe what is aliasing and then we can learn what being strict about it means.
In C and C++ aliasing has to do with what expression types we are allowed to access stored values through. In both C and C++ the standard specifies which expression types are allowed to alias which types. The compiler and optimizer are allowed to assume we follow the aliasing rules strictly, hence the term strict aliasing rule. If we attempt to access a value using a type not allowed it is classified as undefined behavior(UB). Once we have undefined behavior all bets are off, the results of our program are no longer reliable.
Unfortunately with strict aliasing violations, we will often obtain the results we expect, leaving the possibility the a future version of a compiler with a new optimization will break code we th