Skip to content

Instantly share code, notes, and snippets.

View Manoz's full-sized avatar
😏
Meh

Kévin Legrand Manoz

😏
Meh
View GitHub Profile
@Manoz
Manoz / Readme.md
Last active November 12, 2024 05:02
Informations, libraries and setup used to run a LLaMA model locally on Apple Silicon M1/M2 chips

Running LLaMAs models locally on Apple Silicon M1/M2 chips using a nice Web UI

Disclaimer: I'm not a data scientist or an expert with LLaMA models or LLMs thus I won't cover technical details about LLaMA models, Vicuna or the settings used in my tests. I just wanted to play with LLaMA models and share my setup and results with the community.
I also consider that you have some basic knowledge about using a terminal and running Python scripts.
I will also not cover the installation process of the tools and libraries used in this document but I will provide links to the documentation I used to make this work on my computer.
Finally, I'm not a native English speaker so please excuse my English mistakes 🙃

Introduction:

I wanted to try to run a LLaMA model on my computer. Since I had absolutely no knowledge about this I started by reading a lot of documentation and articles on the Internet.

@Manoz
Manoz / BrandLogoItem.astro
Last active March 25, 2023 19:41
Astro.js dynamic component list
---
export interface Props {
label?: string
hoverBrandColor?: string
}
const { label = '', hoverBrandColor = '' } = Astro.props
---
<li
title={label}
{
"particles": {
"number": {
"value": 40,
"density": {
"enable": true,
"value_area": 600
}
},
"color": {
@Manoz
Manoz / ActiveOnClick.js
Created August 12, 2018 09:42
React active class on click
import React from 'react';
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = { isToggledOn: false };
this.toggleClass = this.toggleClass.bind(this);
}
@Manoz
Manoz / SomeComponent.js
Last active August 12, 2018 08:49
React reusable component
import React from 'react';
class MyComponent extends React.Component {
render() {
const MyLink = props => <a href={props.theurl} target="_blank" > {props.thename}</a>;
return (
<div>
<nav>
<MyLink theurl="http://www.example.com/page1" thename="My link" />
@Manoz
Manoz / react-font-face.js
Last active August 11, 2018 20:38
React font-face utility
/**
* FontFace utility function that generates the font-face for you
* @param {string} name font-family name
* @param {string} src file name
* @param {string} fontWeight any font-weight (default: normal)
* @param {string} fontStyle any font-style (default: normal)
* @return {string} Return the complete css
*/
export function fontFace(name, src, fontWeight = 'normal', fontStyle = 'normal') {
return `
@Manoz
Manoz / MyComponent.js
Last active August 11, 2018 15:49
React set class when component is loaded
import React from 'react';
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
didMount: false,
};
}
@Manoz
Manoz / styles.scss
Created May 16, 2017 13:00
SASS/LESS Placeholders
// More infos: https://css-tricks.com/almanac/selectors/p/placeholder/
input {
// Chrome/Safari/Opera
&::-webkit-input-placeholder {
// Your styles
}
// Firefox 19+
&::-moz-placeholder {
@Manoz
Manoz / .zshrc
Last active April 11, 2017 12:42
Copy some gif URL in your clipboard. Use with caution 🤡
#
# GIF stuff *_*
#
# Copy a gif url in my clipboard
# Just in case I need a gif asap.
alias fine='echo -n "https://media.giphy.com/media/z9AUvhAEiXOqA/giphy.gif" | pbcopy; echo "Fine gif copied to clipboard"'
alias nope='echo -n "https://media.giphy.com/media/6h4z4b3v6XWxO/giphy.gif" | pbcopy; echo "Nope gif copied to clipboard"'
alias wtf='echo -n "https://media.giphy.com/media/26xBG9lQdU5YTRnJS/giphy.gif" | pbcopy; echo "WTF gif copied to clipboard"'
alias facepalm='echo -n "https://media.giphy.com/media/XsUtdIeJ0MWMo/giphy.gif" | pbcopy; echo "Facepalm gif copied to clipboard"'
<?php
/**
* Tweaks & utils
* Cleanup wp_head()
* Use it in your function.php file (or inside a plugin)
*/
/**
* Clean the <link> tag output in the site header
* Removing useless ID's