Skip to content

Commit

Permalink
adding MoE HF
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlcocerT committed Feb 18, 2024
1 parent 7f1cafb commit 03c79d5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
21 changes: 15 additions & 6 deletions Z_GoodToKnow/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ it processes two data files, and so on.
How can I process a single argument?
As well as $@, the shell lets you use $1, $2, and so on to refer to specific command-line parameters. You can use this to write commands that feel simpler or more natural than the shell's. For example, you can create a script called column.sh that selects a single column from a CSV file when the user provides the filename as the first parameter and the column as the second:

```
```sh
cut -d , -f $2 $1
```

Expand All @@ -177,7 +177,7 @@ bash column.sh seasonal/autumn.csv 1
# How can I write loops in a shell script?
Shell scripts can also contain loops. You can write them using semi-colons, or split them across lines without semi-colons to make them more readable:

```
```sh
#Print the first and last data records of each file.
for filename in $@
do
Expand Down Expand Up @@ -586,7 +586,7 @@ echo $first_filename
#the return value 0 or 1 is in the variable $?
```
```sh
#Create a function
function return_percentage () {
Expand All @@ -600,7 +600,7 @@ function return_percentage () {

#Call the function with 456 and 632 and echo the result

```
```sh
return_test=$(return_percentage 456 632)
echo "456 out of 632 as a percent is $return_test%"
```
Expand All @@ -609,7 +609,7 @@ echo "456 out of 632 as a percent is $return_test%"

#Create a function with a local base variable

```
```sh
function sum_array () {
local sum=0
#Loop through, adding to base variable
Expand All @@ -629,7 +629,7 @@ echo "The total sum of the test array is $total"

### Scheduling scripts with cron

```
```sh
crontab -l
crontab -e

Expand All @@ -639,3 +639,12 @@ crontab -e
15,30,45 * * * *
*/15 * * * *
```


## FAQ

Provide the biggest 10 folders in a directory

```sh
sudo du -ahx /home/your_directory | sort -rh | head -n 10
```
2 changes: 1 addition & 1 deletion content/docs/Linux_&_Cloud.md/llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Yes, there are many ways to replace Github Copilot for Free:

For example, some experts might be better at understanding technical jargon, while others might excel at creative writing or conversational language.

GPT4 is an example of MoE. But also [Mixtral](https://erichartford.com/dolphin-25-mixtral-8x7b?source=more_articles_bottom_blogs) - Which you can [run for Free locally with Ollama](https://fossengineer.com/selfhosting-llms-ollama/):
GPT4 is an example of MoE. But also [Mixtral](https://erichartford.com/dolphin-25-mixtral-8x7b?source=more_articles_bottom_blogs) - Which you [download from HF](https://huggingface.co/TheBloke/dolphin-2.5-mixtral-8x7b-GGUF) and [run for Free locally with Ollama](https://fossengineer.com/selfhosting-llms-ollama/):

```sh
ollama run mixtral:8x7b #https://mistral.ai/news/mixtral-of-experts/
Expand Down
1 change: 1 addition & 0 deletions content/docs/Linux_&_Cloud.md/selfhosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ WASM allow us to compiled code and run it in various environments (for example b

With Docker we have (generally) bigger Images than WASM. Wasm follows both OCI and w3c standards.

* You can get more ideas at [awesome-WASM](https://github.com/mbasso/awesome-wasm)

```mermaid
graph TD;
Expand Down

0 comments on commit 03c79d5

Please sign in to comment.