<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.fundamental-ramen.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tacoball</id>
	<title>Fundamental Ramen - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fundamental-ramen.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tacoball"/>
	<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/wiki/Special:Contributions/Tacoball"/>
	<updated>2026-07-27T17:01:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.11</generator>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2598</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2598"/>
		<updated>2026-07-27T09:40:43Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
|-&lt;br /&gt;
| File&lt;br /&gt;
|&lt;br /&gt;
| snake_case&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| &lt;br /&gt;
| Lowercase&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| &lt;br /&gt;
| kebab-case&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2597</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2597"/>
		<updated>2026-07-27T09:40:26Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
|-&lt;br /&gt;
| File&lt;br /&gt;
|&lt;br /&gt;
| snake_case&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| &lt;br /&gt;
| Lowercase&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| &lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2596</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2596"/>
		<updated>2026-07-27T09:39:50Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
TODO: Use TreeView to fix&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
|-&lt;br /&gt;
| File&lt;br /&gt;
|&lt;br /&gt;
| snake_case&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| &lt;br /&gt;
| Lowercase&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| &lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2595</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2595"/>
		<updated>2026-07-27T09:39:27Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
TODO: Use TreeView to fix&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
|-&lt;br /&gt;
| File&lt;br /&gt;
|&lt;br /&gt;
| snake_case&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| N/A&lt;br /&gt;
| Lowercase&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| N/A&lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2594</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2594"/>
		<updated>2026-07-27T06:45:07Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
TODO: Use TreeView to fix&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| File&lt;br /&gt;
|&lt;br /&gt;
| snake_case&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| N/A&lt;br /&gt;
| Lowercase&lt;br /&gt;
| package utils&lt;br /&gt;
| Packages are namespaces. They must be concise and descriptive.&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| N/A&lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
| github.com/user/my-project&lt;br /&gt;
| Used for import paths and module names. Kebab-case is standard for URLs.&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type User struct&lt;br /&gt;
| Used to define public data structures.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| Name string&lt;br /&gt;
| Fields starting with a capital letter are visible outside the package.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| age int&lt;br /&gt;
| Fields starting with a lowercase letter are only visible within the package.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| func GetUser() User&lt;br /&gt;
| Functions starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| func internalHelper()&lt;br /&gt;
| Functions starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| var MaxUsers int&lt;br /&gt;
| Variables starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| var count int&lt;br /&gt;
| Variables starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
| const MaxUsers = 100&lt;br /&gt;
| Used for fixed, immutable values.&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type Reader interface&lt;br /&gt;
| Interfaces are typically named to describe the action they perform (e.g., Reader, Writer).&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
| func (u *User) GetName() string&lt;br /&gt;
| Methods follow the same visibility rules as functions.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2593</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2593"/>
		<updated>2026-07-27T06:44:56Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
TODO: Use TreeView to fix&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| File&lt;br /&gt;
|&lt;br /&gt;
| snake case&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| N/A&lt;br /&gt;
| Lowercase&lt;br /&gt;
| package utils&lt;br /&gt;
| Packages are namespaces. They must be concise and descriptive.&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| N/A&lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
| github.com/user/my-project&lt;br /&gt;
| Used for import paths and module names. Kebab-case is standard for URLs.&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type User struct&lt;br /&gt;
| Used to define public data structures.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| Name string&lt;br /&gt;
| Fields starting with a capital letter are visible outside the package.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| age int&lt;br /&gt;
| Fields starting with a lowercase letter are only visible within the package.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| func GetUser() User&lt;br /&gt;
| Functions starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| func internalHelper()&lt;br /&gt;
| Functions starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| var MaxUsers int&lt;br /&gt;
| Variables starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| var count int&lt;br /&gt;
| Variables starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
| const MaxUsers = 100&lt;br /&gt;
| Used for fixed, immutable values.&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type Reader interface&lt;br /&gt;
| Interfaces are typically named to describe the action they perform (e.g., Reader, Writer).&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
| func (u *User) GetName() string&lt;br /&gt;
| Methods follow the same visibility rules as functions.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Agent_can_do_and_cannot_do&amp;diff=2592</id>
		<title>LLM/Agent can do and cannot do</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Agent_can_do_and_cannot_do&amp;diff=2592"/>
		<updated>2026-07-27T04:15:25Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Cannot do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Can do ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Prompt&lt;br /&gt;
! Model&lt;br /&gt;
! Task&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Cannot do ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Prompt&lt;br /&gt;
! Model&lt;br /&gt;
! Task&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Agent_can_do_and_cannot_do&amp;diff=2591</id>
		<title>LLM/Agent can do and cannot do</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Agent_can_do_and_cannot_do&amp;diff=2591"/>
		<updated>2026-07-27T04:15:05Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Can do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Can do ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Prompt&lt;br /&gt;
! Model&lt;br /&gt;
! Task&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Cannot do ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Agent_can_do_and_cannot_do&amp;diff=2590</id>
		<title>LLM/Agent can do and cannot do</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Agent_can_do_and_cannot_do&amp;diff=2590"/>
		<updated>2026-07-27T04:14:25Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: Created page with &amp;quot;== Can do ==  == Cannot do ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Can do ==&lt;br /&gt;
&lt;br /&gt;
== Cannot do ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM&amp;diff=2589</id>
		<title>LLM</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM&amp;diff=2589"/>
		<updated>2026-07-27T04:14:08Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Build environment =&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
* [[LLM/Intel Pro Arc B70]]&lt;br /&gt;
* [[LLM/Nvidia RTX 3060]]&lt;br /&gt;
* [[LLM/Ryzen AI 7 350]] (XDNA)&lt;br /&gt;
&lt;br /&gt;
== Agents ==&lt;br /&gt;
&lt;br /&gt;
* [[LLM/jrswab_axe]]&lt;br /&gt;
&lt;br /&gt;
== Test Experiences ==&lt;br /&gt;
&lt;br /&gt;
* [[LLM/Agent can do and cannot do]]&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2588</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2588"/>
		<updated>2026-07-27T03:05:08Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
TODO: Use TreeView to fix&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| N/A&lt;br /&gt;
| Lowercase&lt;br /&gt;
| package utils&lt;br /&gt;
| Packages are namespaces. They must be concise and descriptive.&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| N/A&lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
| github.com/user/my-project&lt;br /&gt;
| Used for import paths and module names. Kebab-case is standard for URLs.&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type User struct&lt;br /&gt;
| Used to define public data structures.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| Name string&lt;br /&gt;
| Fields starting with a capital letter are visible outside the package.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| age int&lt;br /&gt;
| Fields starting with a lowercase letter are only visible within the package.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| func GetUser() User&lt;br /&gt;
| Functions starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| func internalHelper()&lt;br /&gt;
| Functions starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| var MaxUsers int&lt;br /&gt;
| Variables starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| var count int&lt;br /&gt;
| Variables starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
| const MaxUsers = 100&lt;br /&gt;
| Used for fixed, immutable values.&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type Reader interface&lt;br /&gt;
| Interfaces are typically named to describe the action they perform (e.g., Reader, Writer).&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
| func (u *User) GetName() string&lt;br /&gt;
| Methods follow the same visibility rules as functions.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2587</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2587"/>
		<updated>2026-07-27T02:57:45Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Element&lt;br /&gt;
! Visibility&lt;br /&gt;
! Casing Rule&lt;br /&gt;
! Example&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| Package&lt;br /&gt;
| N/A&lt;br /&gt;
| Lowercase&lt;br /&gt;
| package utils&lt;br /&gt;
| Packages are namespaces. They must be concise and descriptive.&lt;br /&gt;
|-&lt;br /&gt;
| Module&lt;br /&gt;
| N/A&lt;br /&gt;
| kebab-case (Lowercase with hyphens)&lt;br /&gt;
| github.com/user/my-project&lt;br /&gt;
| Used for import paths and module names. Kebab-case is standard for URLs.&lt;br /&gt;
|-&lt;br /&gt;
| Struct / Type&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type User struct&lt;br /&gt;
| Used to define public data structures.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| Name string&lt;br /&gt;
| Fields starting with a capital letter are visible outside the package.&lt;br /&gt;
|-&lt;br /&gt;
| Struct Field&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| age int&lt;br /&gt;
| Fields starting with a lowercase letter are only visible within the package.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| func GetUser() User&lt;br /&gt;
| Functions starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Function&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| func internalHelper()&lt;br /&gt;
| Functions starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| var MaxUsers int&lt;br /&gt;
| Variables starting with a capital letter are public.&lt;br /&gt;
|-&lt;br /&gt;
| Variable&lt;br /&gt;
| Unexported (Private)&lt;br /&gt;
| camelCase&lt;br /&gt;
| var count int&lt;br /&gt;
| Variables starting with a lowercase letter are private to the package.&lt;br /&gt;
|-&lt;br /&gt;
| Constant&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| ALL_CAPS&lt;br /&gt;
| const MaxUsers = 100&lt;br /&gt;
| Used for fixed, immutable values.&lt;br /&gt;
|-&lt;br /&gt;
| Interface&lt;br /&gt;
| Exported (Public)&lt;br /&gt;
| PascalCase&lt;br /&gt;
| type Reader interface&lt;br /&gt;
| Interfaces are typically named to describe the action they perform (e.g., Reader, Writer).&lt;br /&gt;
|-&lt;br /&gt;
| Method&lt;br /&gt;
| Exported/Unexported&lt;br /&gt;
| Follow Function Rules&lt;br /&gt;
| func (u *User) GetName() string&lt;br /&gt;
| Methods follow the same visibility rules as functions.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2586</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2586"/>
		<updated>2026-07-27T02:52:23Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* naming convention table */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Thing || Naming Rule&lt;br /&gt;
|-&lt;br /&gt;
| Module Name ||&lt;br /&gt;
|-&lt;br /&gt;
| ||&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2585</id>
		<title>Go/Quick Start</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Go/Quick_Start&amp;diff=2585"/>
		<updated>2026-07-27T02:52:03Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Create a module =&lt;br /&gt;
&lt;br /&gt;
Create module and source file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go mod init sandbox/hello&lt;br /&gt;
touch hello.go&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	fmt.Println(&amp;quot;Hello, World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go run .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Work with 2 modules =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir main greetings sucks&lt;br /&gt;
cd greetings&lt;br /&gt;
go mod init sandbox/greetings&lt;br /&gt;
cd ../sucks&lt;br /&gt;
go mod init sandbox/sucks&lt;br /&gt;
cd ../main&lt;br /&gt;
go mod init&lt;br /&gt;
go mod edit -replace sandbox/greetings=../greetings&lt;br /&gt;
go mod edit -replace sandbox/sucks=../sucks&lt;br /&gt;
go mod tidy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= naming convention table =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! ||&lt;br /&gt;
|-&lt;br /&gt;
| Module Name ||&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Windows_only&amp;diff=2584</id>
		<title>Useful Commands/Windows only</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Windows_only&amp;diff=2584"/>
		<updated>2026-07-23T03:47:07Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Run command inside WSL Ubuntu =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
wsl -d Ubuntu bash -ic &amp;quot;...&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Fix WSL network =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
wsl --shutdown&lt;br /&gt;
netsh winsock reset&lt;br /&gt;
netsh int ip reset&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= List ports listening =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
netstat -an | findstr LISTENING&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Create a Windows To Go for Mac =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
diskpart&lt;br /&gt;
DISKPART&amp;gt; list disk&lt;br /&gt;
DISKPART&amp;gt; select disk 0&lt;br /&gt;
DISKPART&amp;gt; convert gpt&lt;br /&gt;
DISKPART&amp;gt; create partition efi size=300&lt;br /&gt;
DISKPART&amp;gt; format quick fs=fat32&lt;br /&gt;
DISKPART&amp;gt; assign letter=s&lt;br /&gt;
DISKPART&amp;gt; create partition primary size=184320&lt;br /&gt;
DISKPART&amp;gt; format quick fs=ntfs&lt;br /&gt;
DISKPART&amp;gt; assign letter=t&lt;br /&gt;
DISKPART&amp;gt; create partition primary&lt;br /&gt;
DISKPART&amp;gt; format quick fs=ntfs&lt;br /&gt;
DISKPART&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
dism /apply-image /imagefile:D:\sources\install.wim /index:1 /applydir:T:\&lt;br /&gt;
&lt;br /&gt;
bcdboot T:\Windows /s S: /f UEFI&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
* VirtualBox USB 3.0 is not stable for External Disk&lt;br /&gt;
&lt;br /&gt;
= Make powershell output in English =&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chcp 437&lt;br /&gt;
chcp 65001&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shutdown ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
shutdown /s&lt;br /&gt;
shutdown /s /t 30&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands&amp;diff=2583</id>
		<title>Useful Commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands&amp;diff=2583"/>
		<updated>2026-07-23T03:34:29Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Trouble shooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;https://www.diskpart.com/articles/delete-hidden-partition-on-usb-drive-7201.html&lt;br /&gt;
&lt;br /&gt;
= Trouble shooting =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Reattach an attached screen. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -d -r 2836&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Verify $PATH by line. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo $PATH | tr &#039;:&#039; &#039;\n&#039; | grep &#039;snap&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= File System =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| (查) 變彩色，加上後綴，目錄以 / 結尾，連結以 @ 結尾&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;ls -FG&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| (查) 在目前的目錄下搜尋所有隱藏檔，&#039;&#039;&#039;注意要有單引號&#039;&#039;&#039;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;find . -name &#039;.*&#039;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| delete dist directory recursively except README.md and itself.&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
find ../../assets/swagger/support ! -path *swagger/support ! -name &#039;README.md&#039; -delete&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 刪除檔名 - 或是 -- 開頭的檔案&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;rm -- -X --exclude-from&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 變更檔案時間為&amp;lt;br/&amp;gt;2013 年 9 月 1 號 00:00:00&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;touch -t 201309010000 檔案名稱&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Linux 環境產生 Ramdisk (無法指定大小)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;mount -t ramfs ramfs /usr/local/ramdisk&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Linux/BSD 環境產生 Ramdisk (配置 128M)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;mount -t tmpfs -o size=128m tmpfs /usr/local/ramdisk&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Test I/O performance of 1G write with 4K block&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;dd if=/dev/zero of=100k.bin bs=4k count=262144&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 產生 100K 的檔案&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;dd if=/dev/zero of=100k.bin bs=1k count=100&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 產生 10M 的檔案&amp;lt;br/&amp;gt;空間將會塞爆時，不會有警告訊息&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;dd if=/dev/zero of=10m.bin bs=1m count=10&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 故意消耗系統記憶體 (RAM+SWAP)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir /usr/local/ramdisk&lt;br /&gt;
mount -t tmpfs -o size=2G tmpfs /usr/local/ramdisk&lt;br /&gt;
dd if=/dev/zero of=/usr/local/ramdisk/fill.bin bs=1m count=2048&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Remote File System =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Tool || Example&lt;br /&gt;
|-&lt;br /&gt;
| Samba (Linux) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mount -t smbfs {remote} {local} -o \&lt;br /&gt;
   iocharset=utf8, \&lt;br /&gt;
   user={user}%{password}, \&lt;br /&gt;
   uid=`id -u {local user}`, \&lt;br /&gt;
   gid=`id -u {local group}`&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Samba (MacOS) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mount_smbfs //&#039;{group};{user}&#039;:{password}@{remote}/{shared dir} {local dir}&lt;br /&gt;
smbutil view //Guest@192.168.91.65&lt;br /&gt;
smbutil view //&#039;WORKGROUP;Administrator&#039;:12345@192.168.1.2 # for Windows 2K3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Samba (FreeBSD) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mount -t smbfs -o &#039;-N&#039; //raymondwu@RaymondWu-PC/TikaSamples /var/tika/samples # Using ~/.nsmbrc&lt;br /&gt;
mount_smbfs -I 192.168.91.65 //raymondwu@RaymondWu-PC/TikaSamples /var/tika/samples&lt;br /&gt;
smbutil view -I 192.168.91.65 //raymondwu@RaymondWu-PC&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Compression =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Tool || Example&lt;br /&gt;
|-&lt;br /&gt;
| zip ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
zip -r front-end.zip index.html static/&lt;br /&gt;
unzip -l front-end.zip&lt;br /&gt;
unzip -p front-end.zip index.html&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| tar ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar --exclude=&amp;quot;.*&amp;quot; -zcvf ~/solr-4.3.0.tgz solr-4.3.0&lt;br /&gt;
tar -C /usr/local --exclude &#039;.*&#039; -zcvf tika-1.4-pxx.tgz tika&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| gzip ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gzip -k taiwan-taco.map&lt;br /&gt;
gzip -l taiwan-taco.map.gz &lt;br /&gt;
  compressed uncompressed  ratio uncompressed_name&lt;br /&gt;
    25400590     38204880  33.5% taiwan-taco.map&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| xz ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
xz -zk hd-20190227.csv&lt;br /&gt;
xz -vt hd-20190227.csv.xz &lt;br /&gt;
hd-20190227.csv.xz (1/1)&lt;br /&gt;
  100 %     344.1 KiB / 1,458.1 KiB = 0.236&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| dd ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Make an ISO image.&lt;br /&gt;
df -h&lt;br /&gt;
umount /dev/disk2&lt;br /&gt;
dd if=/dev/disk2 of=Win7.iso bs=2048 count=1000&lt;br /&gt;
file Win7.iso&lt;br /&gt;
Win7.iso: ISO 9660 CD-ROM filesystem data &#039;GRMCULFRER_TW_DVD              &#039; (bootable)&lt;br /&gt;
kill -USR1 {pid of dd}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Other Topics =&lt;br /&gt;
* [[Useful Commands/Hardware|Hardware]]&lt;br /&gt;
* [[Useful Commands/File Processing|File Processing]]&lt;br /&gt;
* [[Useful Commands/Text Processing|Text Processing]]&lt;br /&gt;
* [[Useful Commands/Networking|Networking]]&lt;br /&gt;
* [[Useful Commands/Date &amp;amp; Time|Date &amp;amp; Time]]&lt;br /&gt;
* [[Useful Commands/Service Management|Service Management]]&lt;br /&gt;
* [[Useful Commands/Package Management|Package Management]]&lt;br /&gt;
* [[Useful Commands/Package Compilation|Package Compilation]]&lt;br /&gt;
* [[Useful Commands/System Management|System Management]]&lt;br /&gt;
* [[Useful Commands/System Status|System Status]]&lt;br /&gt;
* [[Useful Commands/Arithmetic|Arithemetic]]&lt;br /&gt;
* [[Useful Commands/Security|Security]]: ssh, socat&lt;br /&gt;
* [[Useful Commands/MacOS only|MacOS only]]&lt;br /&gt;
* [[Useful Commands/Windows only|Windows only]]&lt;br /&gt;
* [[Git]]&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands&amp;diff=2582</id>
		<title>Useful Commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands&amp;diff=2582"/>
		<updated>2026-07-23T03:34:11Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Trouble shooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;https://www.diskpart.com/articles/delete-hidden-partition-on-usb-drive-7201.html&lt;br /&gt;
&lt;br /&gt;
= Trouble shooting =&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Reattach an attached screen. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -d -r 2836&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Verify $PATH by line. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo $PATH | tr &#039;:&#039; &#039;\n&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= File System =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| (查) 變彩色，加上後綴，目錄以 / 結尾，連結以 @ 結尾&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;ls -FG&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| (查) 在目前的目錄下搜尋所有隱藏檔，&#039;&#039;&#039;注意要有單引號&#039;&#039;&#039;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;find . -name &#039;.*&#039;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| delete dist directory recursively except README.md and itself.&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
find ../../assets/swagger/support ! -path *swagger/support ! -name &#039;README.md&#039; -delete&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 刪除檔名 - 或是 -- 開頭的檔案&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;rm -- -X --exclude-from&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 變更檔案時間為&amp;lt;br/&amp;gt;2013 年 9 月 1 號 00:00:00&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;touch -t 201309010000 檔案名稱&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Linux 環境產生 Ramdisk (無法指定大小)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;mount -t ramfs ramfs /usr/local/ramdisk&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Linux/BSD 環境產生 Ramdisk (配置 128M)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;mount -t tmpfs -o size=128m tmpfs /usr/local/ramdisk&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Test I/O performance of 1G write with 4K block&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;dd if=/dev/zero of=100k.bin bs=4k count=262144&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 產生 100K 的檔案&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;dd if=/dev/zero of=100k.bin bs=1k count=100&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 產生 10M 的檔案&amp;lt;br/&amp;gt;空間將會塞爆時，不會有警告訊息&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;dd if=/dev/zero of=10m.bin bs=1m count=10&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 故意消耗系統記憶體 (RAM+SWAP)&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir /usr/local/ramdisk&lt;br /&gt;
mount -t tmpfs -o size=2G tmpfs /usr/local/ramdisk&lt;br /&gt;
dd if=/dev/zero of=/usr/local/ramdisk/fill.bin bs=1m count=2048&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Remote File System =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Tool || Example&lt;br /&gt;
|-&lt;br /&gt;
| Samba (Linux) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mount -t smbfs {remote} {local} -o \&lt;br /&gt;
   iocharset=utf8, \&lt;br /&gt;
   user={user}%{password}, \&lt;br /&gt;
   uid=`id -u {local user}`, \&lt;br /&gt;
   gid=`id -u {local group}`&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Samba (MacOS) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mount_smbfs //&#039;{group};{user}&#039;:{password}@{remote}/{shared dir} {local dir}&lt;br /&gt;
smbutil view //Guest@192.168.91.65&lt;br /&gt;
smbutil view //&#039;WORKGROUP;Administrator&#039;:12345@192.168.1.2 # for Windows 2K3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Samba (FreeBSD) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mount -t smbfs -o &#039;-N&#039; //raymondwu@RaymondWu-PC/TikaSamples /var/tika/samples # Using ~/.nsmbrc&lt;br /&gt;
mount_smbfs -I 192.168.91.65 //raymondwu@RaymondWu-PC/TikaSamples /var/tika/samples&lt;br /&gt;
smbutil view -I 192.168.91.65 //raymondwu@RaymondWu-PC&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Compression =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Tool || Example&lt;br /&gt;
|-&lt;br /&gt;
| zip ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
zip -r front-end.zip index.html static/&lt;br /&gt;
unzip -l front-end.zip&lt;br /&gt;
unzip -p front-end.zip index.html&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| tar ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar --exclude=&amp;quot;.*&amp;quot; -zcvf ~/solr-4.3.0.tgz solr-4.3.0&lt;br /&gt;
tar -C /usr/local --exclude &#039;.*&#039; -zcvf tika-1.4-pxx.tgz tika&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| gzip ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gzip -k taiwan-taco.map&lt;br /&gt;
gzip -l taiwan-taco.map.gz &lt;br /&gt;
  compressed uncompressed  ratio uncompressed_name&lt;br /&gt;
    25400590     38204880  33.5% taiwan-taco.map&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| xz ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
xz -zk hd-20190227.csv&lt;br /&gt;
xz -vt hd-20190227.csv.xz &lt;br /&gt;
hd-20190227.csv.xz (1/1)&lt;br /&gt;
  100 %     344.1 KiB / 1,458.1 KiB = 0.236&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| dd ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Make an ISO image.&lt;br /&gt;
df -h&lt;br /&gt;
umount /dev/disk2&lt;br /&gt;
dd if=/dev/disk2 of=Win7.iso bs=2048 count=1000&lt;br /&gt;
file Win7.iso&lt;br /&gt;
Win7.iso: ISO 9660 CD-ROM filesystem data &#039;GRMCULFRER_TW_DVD              &#039; (bootable)&lt;br /&gt;
kill -USR1 {pid of dd}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Other Topics =&lt;br /&gt;
* [[Useful Commands/Hardware|Hardware]]&lt;br /&gt;
* [[Useful Commands/File Processing|File Processing]]&lt;br /&gt;
* [[Useful Commands/Text Processing|Text Processing]]&lt;br /&gt;
* [[Useful Commands/Networking|Networking]]&lt;br /&gt;
* [[Useful Commands/Date &amp;amp; Time|Date &amp;amp; Time]]&lt;br /&gt;
* [[Useful Commands/Service Management|Service Management]]&lt;br /&gt;
* [[Useful Commands/Package Management|Package Management]]&lt;br /&gt;
* [[Useful Commands/Package Compilation|Package Compilation]]&lt;br /&gt;
* [[Useful Commands/System Management|System Management]]&lt;br /&gt;
* [[Useful Commands/System Status|System Status]]&lt;br /&gt;
* [[Useful Commands/Arithmetic|Arithemetic]]&lt;br /&gt;
* [[Useful Commands/Security|Security]]: ssh, socat&lt;br /&gt;
* [[Useful Commands/MacOS only|MacOS only]]&lt;br /&gt;
* [[Useful Commands/Windows only|Windows only]]&lt;br /&gt;
* [[Git]]&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2581</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2581"/>
		<updated>2026-07-22T16:49:54Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* llama-swap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== llama-swap ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
wget https://github.com/mostlygeek/llama-swap/releases/download/v240/llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
tar -zxv -C ~/.local/bin -f llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
nano config.yaml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;&lt;br /&gt;
apiKeys:&lt;br /&gt;
  - &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Optional: Global timeout settings&lt;br /&gt;
healthCheckTimeout: 120  # Max seconds to wait for model server to boot up&lt;br /&gt;
logLevel: info&lt;br /&gt;
&lt;br /&gt;
# Allow both models to run simultaneously without auto-unloading each other&lt;br /&gt;
groups:&lt;br /&gt;
  parallel:&lt;br /&gt;
    swap: false&lt;br /&gt;
    members:&lt;br /&gt;
      - gemma4-e4b&lt;br /&gt;
      - gemma4-12b&lt;br /&gt;
&lt;br /&gt;
# Run warmup requests automatically on llama-swap startup&lt;br /&gt;
hooks:&lt;br /&gt;
  on_startup:&lt;br /&gt;
    preload:&lt;br /&gt;
      - gemma4-e4b&lt;br /&gt;
      - gemma4-12b&lt;br /&gt;
&lt;br /&gt;
# Map model names to their host execution commands&lt;br /&gt;
models:&lt;br /&gt;
  gemma4-e4b:&lt;br /&gt;
    cmd: &amp;gt;&lt;br /&gt;
      taskset -c 0,2,4 ./llama.cpp/sycl/bin/llama-server&lt;br /&gt;
      -hf google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
      -t 3 -tb 3 --mlock -c 64000 -ngl 99&lt;br /&gt;
      --flash-attn on --cache-type-k q4_0 --cache-type-v q4_0&lt;br /&gt;
      --temp 0.3&lt;br /&gt;
      --port ${PORT}&lt;br /&gt;
    ttl: 0&lt;br /&gt;
&lt;br /&gt;
  gemma4-12b:&lt;br /&gt;
    # Use multi-line strings for readable shell commands&lt;br /&gt;
    cmd: &amp;gt;&lt;br /&gt;
      taskset -c 6,8,10 ./llama.cpp/sycl/bin/llama-server&lt;br /&gt;
      -hf google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
      -t 3 -tb 3 --mlock -c 64000 -ngl 99&lt;br /&gt;
      --flash-attn on --cache-type-k q4_0 --cache-type-v q4_0&lt;br /&gt;
      --temp 0.3&lt;br /&gt;
      --port ${PORT}&lt;br /&gt;
    ttl: 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
llama-swap --config config.yaml --listen 0.0.0.0:9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Windows_only&amp;diff=2580</id>
		<title>Useful Commands/Windows only</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Windows_only&amp;diff=2580"/>
		<updated>2026-07-22T04:08:45Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Fix WSL network =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
wsl --shutdown&lt;br /&gt;
netsh winsock reset&lt;br /&gt;
netsh int ip reset&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= List ports listening =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
netstat -an | findstr LISTENING&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Create a Windows To Go for Mac =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
diskpart&lt;br /&gt;
DISKPART&amp;gt; list disk&lt;br /&gt;
DISKPART&amp;gt; select disk 0&lt;br /&gt;
DISKPART&amp;gt; convert gpt&lt;br /&gt;
DISKPART&amp;gt; create partition efi size=300&lt;br /&gt;
DISKPART&amp;gt; format quick fs=fat32&lt;br /&gt;
DISKPART&amp;gt; assign letter=s&lt;br /&gt;
DISKPART&amp;gt; create partition primary size=184320&lt;br /&gt;
DISKPART&amp;gt; format quick fs=ntfs&lt;br /&gt;
DISKPART&amp;gt; assign letter=t&lt;br /&gt;
DISKPART&amp;gt; create partition primary&lt;br /&gt;
DISKPART&amp;gt; format quick fs=ntfs&lt;br /&gt;
DISKPART&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
dism /apply-image /imagefile:D:\sources\install.wim /index:1 /applydir:T:\&lt;br /&gt;
&lt;br /&gt;
bcdboot T:\Windows /s S: /f UEFI&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
* VirtualBox USB 3.0 is not stable for External Disk&lt;br /&gt;
&lt;br /&gt;
= Make powershell output in English =&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
chcp 437&lt;br /&gt;
chcp 65001&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shutdown ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
shutdown /s&lt;br /&gt;
shutdown /s /t 30&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/System_Status&amp;diff=2579</id>
		<title>Useful Commands/System Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/System_Status&amp;diff=2579"/>
		<updated>2026-07-22T03:56:00Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Get Ubuntu version ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
lsb_release -a&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Cet CPU usage by core. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vmstat -P 1     # FreeBSD&lt;br /&gt;
mpstat -P ALL 1 # Linux&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get info of SNMP v3 with encryption ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
snmpwalk -v 3 -l authPriv -u ${USERNAME} \&lt;br /&gt;
   -a SHA -A ${PASSWORD} \ # hash&lt;br /&gt;
   -x AES -X random123 \   # cipher&lt;br /&gt;
   ${HOST} \&lt;br /&gt;
   ${OID}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[http://www.alvestrand.no/objectid/top.html OID Query]&lt;br /&gt;
|-&lt;br /&gt;
| Get info of SNMP v2 ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
snmpwalk -v2c -cpublic 192.168.93.172 system&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/System_Status&amp;diff=2578</id>
		<title>Useful Commands/System Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/System_Status&amp;diff=2578"/>
		<updated>2026-07-22T03:53:37Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Get Ubuntu version ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
lsb_release -a&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 觀察 CPU 使用狀態，每個 core 數據分開 ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
vmstat -P 1     # FreeBSD&lt;br /&gt;
mpstat -P ALL 1 # Linux&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 取得 SNMP v3 資訊&amp;lt;br/&amp;gt;(認證與傳輸都加密) ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
snmpwalk -v 3 -l authPriv -u ${USERNAME} \&lt;br /&gt;
   -a SHA -A ${PASSWORD} \ # 密碼加密方式與密碼 (摘要演算法)&lt;br /&gt;
   -x AES -X random123 \ # 傳輸加密方式與密鑰 (對稱加密演算法)&lt;br /&gt;
   ${HOST} \&lt;br /&gt;
   ${OID}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[http://www.alvestrand.no/objectid/top.html OID 查詢系統]&lt;br /&gt;
|-&lt;br /&gt;
| 取得 SNMP v2 資訊 ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
snmpwalk -v2c -cpublic 192.168.93.172 system&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2577</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2577"/>
		<updated>2026-07-21T14:55:52Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Advanced practices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# i-have-adhd&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/ayghri/i-have-adhd/main/skills/i-have-adhd/SKILL.md -o adhd.md&lt;br /&gt;
# modern-go-guidelines&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/JetBrains/go-modern-guidelines/main/claude/modern-go-guidelines/skills/use-modern-go/SKILL.md -o modern-go.md&lt;br /&gt;
# samber/cc-skills-golang&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/skills/golang-security/SKILL.md -o go-security.md&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/skills/golang-performance/SKILL.md -o go-perf.md&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
name = &amp;quot;go-developer&amp;quot;&lt;br /&gt;
description = &amp;quot;High-efficiency Go developer with gopls &amp;amp; golangci-lint execution capabilities&amp;quot;&lt;br /&gt;
model = &amp;quot;anthropic/claude-3-7-sonnet&amp;quot; # 或使用 open-ai/gpt-4o / ollama/qwen2.5-coder&lt;br /&gt;
&lt;br /&gt;
skills = [&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/adhd.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/modern-go.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/go-security.md&amp;quot;&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
system_prompt = &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
You are a senior Golang developer.&lt;br /&gt;
- You must strictly follow the i-have-adhd format: direct output, step-by-step with time estimates, and ending with a single Next Step.&lt;br /&gt;
- Before suggesting any refactoring, check for lint errors using golangci-lint.&lt;br /&gt;
- Write modern Go code (Go 1.21+) using standard libraries like `slices`, `cmp`, and proper error wrapping `fmt.Errorf(&amp;quot;%w&amp;quot;)`.&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[mcp_servers.gopls]&lt;br /&gt;
command = &amp;quot;gopls-mcp&amp;quot;&lt;br /&gt;
args = []&lt;br /&gt;
&lt;br /&gt;
[tools]&lt;br /&gt;
file_read = true&lt;br /&gt;
file_write = true&lt;br /&gt;
bash_exec = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2576</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2576"/>
		<updated>2026-07-21T14:54:50Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Advanced practices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# i-have-adhd&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/ayghri/i-have-adhd/main/skills/i-have-adhd/SKILL.md -o adhd.md&lt;br /&gt;
# modern-go-guidelines&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/JetBrains/go-modern-guidelines/main/SKILL.md -o modern-go.md&lt;br /&gt;
# samber/cc-skills-golang&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/skills/golang-security/SKILL.md -o go-security.md&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/skills/golang-performance/SKILL.md -o go-perf.md&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
name = &amp;quot;go-developer&amp;quot;&lt;br /&gt;
description = &amp;quot;High-efficiency Go developer with gopls &amp;amp; golangci-lint execution capabilities&amp;quot;&lt;br /&gt;
model = &amp;quot;anthropic/claude-3-7-sonnet&amp;quot; # 或使用 open-ai/gpt-4o / ollama/qwen2.5-coder&lt;br /&gt;
&lt;br /&gt;
skills = [&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/adhd.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/modern-go.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/go-security.md&amp;quot;&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
system_prompt = &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
You are a senior Golang developer.&lt;br /&gt;
- You must strictly follow the i-have-adhd format: direct output, step-by-step with time estimates, and ending with a single Next Step.&lt;br /&gt;
- Before suggesting any refactoring, check for lint errors using golangci-lint.&lt;br /&gt;
- Write modern Go code (Go 1.21+) using standard libraries like `slices`, `cmp`, and proper error wrapping `fmt.Errorf(&amp;quot;%w&amp;quot;)`.&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[mcp_servers.gopls]&lt;br /&gt;
command = &amp;quot;gopls-mcp&amp;quot;&lt;br /&gt;
args = []&lt;br /&gt;
&lt;br /&gt;
[tools]&lt;br /&gt;
file_read = true&lt;br /&gt;
file_write = true&lt;br /&gt;
bash_exec = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2575</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2575"/>
		<updated>2026-07-21T14:49:34Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Advanced practices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# i-have-adhd&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/ayghri/i-have-adhd/main/skills/i-have-adhd/SKILL.md -o adhd.md&lt;br /&gt;
# modern-go-guidelines&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/JetBrains/go-modern-guidelines/main/SKILL.md -o modern-go.md&lt;br /&gt;
# samber/cc-skills-golang&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/golang-security/SKILL.md -o go-security.md&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/golang-performance/SKILL.md -o go-perf.md&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
name = &amp;quot;go-developer&amp;quot;&lt;br /&gt;
description = &amp;quot;High-efficiency Go developer with gopls &amp;amp; golangci-lint execution capabilities&amp;quot;&lt;br /&gt;
model = &amp;quot;anthropic/claude-3-7-sonnet&amp;quot; # 或使用 open-ai/gpt-4o / ollama/qwen2.5-coder&lt;br /&gt;
&lt;br /&gt;
skills = [&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/adhd.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/modern-go.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/go-security.md&amp;quot;&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
system_prompt = &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
You are a senior Golang developer.&lt;br /&gt;
- You must strictly follow the i-have-adhd format: direct output, step-by-step with time estimates, and ending with a single Next Step.&lt;br /&gt;
- Before suggesting any refactoring, check for lint errors using golangci-lint.&lt;br /&gt;
- Write modern Go code (Go 1.21+) using standard libraries like `slices`, `cmp`, and proper error wrapping `fmt.Errorf(&amp;quot;%w&amp;quot;)`.&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[mcp_servers.gopls]&lt;br /&gt;
command = &amp;quot;gopls-mcp&amp;quot;&lt;br /&gt;
args = []&lt;br /&gt;
&lt;br /&gt;
[tools]&lt;br /&gt;
file_read = true&lt;br /&gt;
file_write = true&lt;br /&gt;
bash_exec = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2574</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2574"/>
		<updated>2026-07-21T14:48:28Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Advanced practices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# i-have-adhd&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/ayghri/i-have-adhd/main/SKILL.md -o adhd.md&lt;br /&gt;
wget https://raw.githubusercontent.com/ayghri/i-have-adhd/main/skills/i-have-adhd/SKILL.md&lt;br /&gt;
# modern-go-guidelines&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/JetBrains/go-modern-guidelines/main/SKILL.md -o modern-go.md&lt;br /&gt;
# samber/cc-skills-golang&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/golang-security/SKILL.md -o go-security.md&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/golang-performance/SKILL.md -o go-perf.md&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
name = &amp;quot;go-developer&amp;quot;&lt;br /&gt;
description = &amp;quot;High-efficiency Go developer with gopls &amp;amp; golangci-lint execution capabilities&amp;quot;&lt;br /&gt;
model = &amp;quot;anthropic/claude-3-7-sonnet&amp;quot; # 或使用 open-ai/gpt-4o / ollama/qwen2.5-coder&lt;br /&gt;
&lt;br /&gt;
skills = [&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/adhd.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/modern-go.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/go-security.md&amp;quot;&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
system_prompt = &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
You are a senior Golang developer.&lt;br /&gt;
- You must strictly follow the i-have-adhd format: direct output, step-by-step with time estimates, and ending with a single Next Step.&lt;br /&gt;
- Before suggesting any refactoring, check for lint errors using golangci-lint.&lt;br /&gt;
- Write modern Go code (Go 1.21+) using standard libraries like `slices`, `cmp`, and proper error wrapping `fmt.Errorf(&amp;quot;%w&amp;quot;)`.&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[mcp_servers.gopls]&lt;br /&gt;
command = &amp;quot;gopls-mcp&amp;quot;&lt;br /&gt;
args = []&lt;br /&gt;
&lt;br /&gt;
[tools]&lt;br /&gt;
file_read = true&lt;br /&gt;
file_write = true&lt;br /&gt;
bash_exec = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2573</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2573"/>
		<updated>2026-07-21T14:47:13Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Advanced practices */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# i-have-adhd&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/ayghri/i-have-adhd/main/SKILL.md -o adhd.md&lt;br /&gt;
# modern-go-guidelines&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/JetBrains/go-modern-guidelines/main/SKILL.md -o modern-go.md&lt;br /&gt;
# samber/cc-skills-golang&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/golang-security/SKILL.md -o go-security.md&lt;br /&gt;
curl -sSL https://raw.githubusercontent.com/samber/cc-skills-golang/main/golang-performance/SKILL.md -o go-perf.md&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
name = &amp;quot;go-developer&amp;quot;&lt;br /&gt;
description = &amp;quot;High-efficiency Go developer with gopls &amp;amp; golangci-lint execution capabilities&amp;quot;&lt;br /&gt;
model = &amp;quot;anthropic/claude-3-7-sonnet&amp;quot; # 或使用 open-ai/gpt-4o / ollama/qwen2.5-coder&lt;br /&gt;
&lt;br /&gt;
skills = [&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/adhd.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/modern-go.md&amp;quot;,&lt;br /&gt;
  &amp;quot;~/.config/axe/skills/go-security.md&amp;quot;&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
system_prompt = &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
You are a senior Golang developer.&lt;br /&gt;
- You must strictly follow the i-have-adhd format: direct output, step-by-step with time estimates, and ending with a single Next Step.&lt;br /&gt;
- Before suggesting any refactoring, check for lint errors using golangci-lint.&lt;br /&gt;
- Write modern Go code (Go 1.21+) using standard libraries like `slices`, `cmp`, and proper error wrapping `fmt.Errorf(&amp;quot;%w&amp;quot;)`.&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[mcp_servers.gopls]&lt;br /&gt;
command = &amp;quot;gopls-mcp&amp;quot;&lt;br /&gt;
args = []&lt;br /&gt;
&lt;br /&gt;
[tools]&lt;br /&gt;
file_read = true&lt;br /&gt;
file_write = true&lt;br /&gt;
bash_exec = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2572</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2572"/>
		<updated>2026-07-21T14:42:07Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Installation (PowerShell 7) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2571</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2571"/>
		<updated>2026-07-21T14:36:16Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Set provider for local model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation (PowerShell 7) ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-have-a-good-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://xxx.xxx.xxx.xxx:60000/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2570</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2570"/>
		<updated>2026-07-21T14:35:24Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Set provider for local model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation (PowerShell 7) ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# TODO: need to update&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://192.168.23.xx:9004/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2569</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2569"/>
		<updated>2026-07-21T14:34:09Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Install */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation (PowerShell 7) ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://192.168.23.xx:9004/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2568</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2568"/>
		<updated>2026-07-21T14:33:57Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Installation (PowerShell 7) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation (PowerShell 7) ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then got this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
....\Documents\SynologyDrive\11.Environments\axe&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://192.168.23.xx:9004/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2567</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2567"/>
		<updated>2026-07-21T14:32:28Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Install */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation (PowerShell 7) ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[System.Environment]::SetEnvironmentVariable(&#039;XDG_CONFIG_HOME&#039;, &amp;quot;$HOME\Documents\SynologyDrive\11.Environments&amp;quot;, &#039;User&#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reopen Power Shell to take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://192.168.23.xx:9004/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2566</id>
		<title>LLM/jrswab axe</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/jrswab_axe&amp;diff=2566"/>
		<updated>2026-07-21T14:31:34Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: Created page with &amp;quot;== What&amp;#039;s that? ==  Official Site: https://github.com/jrswab/axe  == Installation (PowerShell 7) ==  === Install ===  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; Set config dir first for NAS auto backup. &amp;lt;/syntaxhighlight&amp;gt;  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; go install github.com/jrswab/axe@latest axe config init &amp;lt;/syntaxhighlight&amp;gt;  === Set VSCode as Editor for axe ===  Set environment variable &amp;#039;&amp;#039;&amp;#039;EDITOR&amp;#039;&amp;#039;&amp;#039; as  %USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe  Reopen PowerSh...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What&#039;s that? ==&lt;br /&gt;
&lt;br /&gt;
Official Site: https://github.com/jrswab/axe&lt;br /&gt;
&lt;br /&gt;
== Installation (PowerShell 7) ==&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Set config dir first for NAS auto backup.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
go install github.com/jrswab/axe@latest&lt;br /&gt;
axe config init&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set VSCode as Editor for axe ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable &#039;&#039;&#039;EDITOR&#039;&#039;&#039; as&lt;br /&gt;
&lt;br /&gt;
%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe&lt;br /&gt;
&lt;br /&gt;
Reopen PowerShell and execute to verify.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
# Varify environment variable&lt;br /&gt;
Get-ChildItem Env:EDITOR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set provider for local model ===&lt;br /&gt;
&lt;br /&gt;
Then edit config.yoml.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ii $HOME\AppData\Roaming\axe\config.toml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It would be opened by VSCode.&lt;br /&gt;
Edit section &#039;&#039;&#039;providers.openai&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[providers.openai]&lt;br /&gt;
api_key = &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
base_url = &amp;quot;http://192.168.23.xx:9004/v1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup Agent ==&lt;br /&gt;
&lt;br /&gt;
=== Add agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe agents init query&lt;br /&gt;
axe agents edit query&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
model = &amp;quot;openai/google/gemma-4-E4B-qat-a4_0-gguf&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Test agent ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
axe run query -p &amp;quot;1+1=?&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it outputs 2, axe is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Advanced practices ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM&amp;diff=2565</id>
		<title>LLM</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM&amp;diff=2565"/>
		<updated>2026-07-21T14:28:40Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Build environment =&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
* [[LLM/Intel Pro Arc B70]]&lt;br /&gt;
* [[LLM/Nvidia RTX 3060]]&lt;br /&gt;
* [[LLM/Ryzen AI 7 350]] (XDNA)&lt;br /&gt;
&lt;br /&gt;
== Agents ==&lt;br /&gt;
&lt;br /&gt;
* [[LLM/jrswab_axe]]&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2564</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2564"/>
		<updated>2026-07-21T10:25:44Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* llama-swap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== llama-swap ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
wget https://github.com/mostlygeek/llama-swap/releases/download/v240/llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
tar -zxv -C ~/.local/bin -f llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
nano config.yaml&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;&lt;br /&gt;
apiKeys:&lt;br /&gt;
  - &amp;quot;sk-no-such-key&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Optional: Global timeout settings&lt;br /&gt;
healthCheckTimeout: 120  # Max seconds to wait for model server to boot up&lt;br /&gt;
logLevel: info&lt;br /&gt;
&lt;br /&gt;
# Allow both models to run simultaneously without auto-unloading each other&lt;br /&gt;
groups:&lt;br /&gt;
  parallel:&lt;br /&gt;
    swap: false&lt;br /&gt;
    members:&lt;br /&gt;
      - gemma4-e4b&lt;br /&gt;
      - gemma4-12b&lt;br /&gt;
&lt;br /&gt;
# Run warmup requests automatically on llama-swap startup&lt;br /&gt;
hooks:&lt;br /&gt;
  on_startup:&lt;br /&gt;
    preload:&lt;br /&gt;
      - gemma4-e4b&lt;br /&gt;
      - gemma4-12b&lt;br /&gt;
&lt;br /&gt;
# Map model names to their host execution commands&lt;br /&gt;
models:&lt;br /&gt;
  gemma4-e4b:&lt;br /&gt;
    cmd: &amp;gt;&lt;br /&gt;
      taskset -c 0,2,4 ./llama.cpp/sycl/bin/llama-server&lt;br /&gt;
      -hf google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
      -t 3 -tb 3 --mlock -c 64000 -ngl 99&lt;br /&gt;
      --flash-attn on --cache-type-k q4_0 --cache-type-v q4_0&lt;br /&gt;
      --temp 0.3&lt;br /&gt;
      --port ${PORT}&lt;br /&gt;
    ttl: 0&lt;br /&gt;
&lt;br /&gt;
  gemma4-12b:&lt;br /&gt;
    # Use multi-line strings for readable shell commands&lt;br /&gt;
    cmd: &amp;gt;&lt;br /&gt;
      taskset -c 6,8,10 ./llama.cpp/sycl/bin/llama-server&lt;br /&gt;
      -hf google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
      -t 3 -tb 3 --mlock -c 64000 -ngl 99&lt;br /&gt;
      --flash-attn on --cache-type-k q4_0 --cache-type-v q4_0&lt;br /&gt;
      --temp 0.3&lt;br /&gt;
      --port ${PORT}&lt;br /&gt;
    ttl: 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2563</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2563"/>
		<updated>2026-07-21T09:32:58Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* llama-swap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== llama-swap ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
wget https://github.com/mostlygeek/llama-swap/releases/download/v240/llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
tar -zxv -C ~/.local/bin -f llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2562</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2562"/>
		<updated>2026-07-21T09:27:29Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* llama-swap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== llama-swap ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
wget https://github.com/mostlygeek/llama-swap/releases/download/v240/llama-swap_240_linux_amd64.tar.gz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2561</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2561"/>
		<updated>2026-07-21T09:26:37Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* llama-swap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== llama-swap ==&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2560</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2560"/>
		<updated>2026-07-21T09:26:16Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Serve two models in the same tcp port */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== llama-swap ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2559</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2559"/>
		<updated>2026-07-21T09:19:01Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Serve two models in the same tcp port */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model can be loaded at a time.&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2558</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2558"/>
		<updated>2026-07-21T09:17:34Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Serve two models in the same tcp port */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But only one model loaded.&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2557</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2557"/>
		<updated>2026-07-21T09:07:53Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Serve two models in the same tcp port */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9000 \&lt;br /&gt;
  --api-key sk-no-such-key&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2556</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2556"/>
		<updated>2026-07-21T09:07:41Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Serve two models in the same tcp port */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004 \&lt;br /&gt;
  --api-key sk-no-such-key&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2555</id>
		<title>LLM/Intel Pro Arc B70/2026-07-13</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=LLM/Intel_Pro_Arc_B70/2026-07-13&amp;diff=2555"/>
		<updated>2026-07-21T09:07:26Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* CPU optimization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install on Ubuntu 26.04 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y openssh-server curl screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install driver ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# install ppa (the most important)&lt;br /&gt;
sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-opencl-icd libze-intel-gpu1 intel-media-va-driver-non-free clinfo intel-gsc&lt;br /&gt;
&lt;br /&gt;
# check again&lt;br /&gt;
sudo clinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install OpenVINO archive ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mkdir /opt/intel&lt;br /&gt;
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/linux/openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64.tgz --output openvino_2026.2.1.tgz&lt;br /&gt;
tar -xf openvino_2026.2.1.tgz&lt;br /&gt;
sudo mv openvino_toolkit_ubuntu24_2026.2.1.21919.ede283a88e3_x86_64 /opt/intel/openvino_2026.2.1&lt;br /&gt;
cd /opt/intel/openvino_2026.2.1&lt;br /&gt;
sudo -E ./install_dependencies/install_openvino_dependencies.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply OpenVINO environment for user ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano ./bashrc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Setup LD Path&lt;br /&gt;
source /opt/intel/openvino_2026/setupvars.sh&lt;br /&gt;
# Use GPU first when running llama-cli, llama-server, ...&lt;br /&gt;
GGML_OPENVINO_DEVICE=GPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + OpenVINO ===&lt;br /&gt;
&lt;br /&gt;
See: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/OPENVINO.md#supported-devices&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install git libssl-dev&lt;br /&gt;
mkdir -p ~/llama.cpp/src&lt;br /&gt;
git clone https://github.com/ggerganov/llama.cpp ~/llama.cpp/src&lt;br /&gt;
cd ~/llama.cpp/src&lt;br /&gt;
sudo apt-get install -y opencl-c-headers ocl-icd-opencl-dev&lt;br /&gt;
&lt;br /&gt;
cmake -B build-openvino \&lt;br /&gt;
  -DGGML_OPENVINO=ON \&lt;br /&gt;
  -DGGML_OPENVINO_DEVICE=GPU \&lt;br /&gt;
  -DCMAKE_BUILD_TYPE=Release \&lt;br /&gt;
  -DCMAKE_INSTALL_RPATH=&amp;quot;\$ORIGIN/../lib&amp;quot; .&lt;br /&gt;
&lt;br /&gt;
cmake --build build-openvino --parallel&lt;br /&gt;
&lt;br /&gt;
cmake --install build-openvino --prefix ~/llama.cpp/openvino&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install llama.cpp + SYCL ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y wget gnupg ca-certificates&lt;br /&gt;
&lt;br /&gt;
# 建立存放密鑰的資料夾&lt;br /&gt;
sudo mkdir -m 0755 -p /etc/apt/keyrings&lt;br /&gt;
&lt;br /&gt;
# 下載 Intel SW Products 公鑰並轉換為 GPG 格式&lt;br /&gt;
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \&lt;br /&gt;
| gpg --dearmor | sudo tee /etc/apt/keyrings/oneapi-archive-keyring.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb [signed-by=/etc/apt/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main&amp;quot; \&lt;br /&gt;
| sudo tee /etc/apt/sources.list.d/oneAPI.list&lt;br /&gt;
&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install -y intel-oneapi-mkl-devel intel-oneapi-compiler-dpcpp-cpp&lt;br /&gt;
source /opt/intel/oneapi/setvars.sh&lt;br /&gt;
&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
cmake --install build-sycl --prefix ~/llama.cpp/sycl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Run llama.cpp ==&lt;br /&gt;
&lt;br /&gt;
=== Run Gemma 4 12B with 65535 context. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --log-file ../logs/llama.log -lv 3 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== With tempature 0.3. ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CPU optimization ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
taskset -c 0,2,4 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9012&lt;br /&gt;
&lt;br /&gt;
taskset -c 6,8,10 ./llama-server \&lt;br /&gt;
  -hf google/gemma-4-E4B-it-qat-q4_0-gguf \&lt;br /&gt;
  -t 3 \&lt;br /&gt;
  -tb 3 \&lt;br /&gt;
  --mlock \&lt;br /&gt;
  -c 65535 \&lt;br /&gt;
  -ngl 99 \&lt;br /&gt;
  --flash-attn on \&lt;br /&gt;
  --cache-type-k q4_0 \&lt;br /&gt;
  --cache-type-v q4_0 \&lt;br /&gt;
  --temp 0.3 \&lt;br /&gt;
  --api-key sk-no-such-key \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serve two models in the same tcp port ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
nano models.ini&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
# common settings&lt;br /&gt;
[*]&lt;br /&gt;
mlock = true&lt;br /&gt;
flash-attn = on&lt;br /&gt;
ctx-size = 32000&lt;br /&gt;
gpu-layers = 99&lt;br /&gt;
cache-type-k = q4_0&lt;br /&gt;
cache-type-v = q4_0&lt;br /&gt;
temp = 0.3&lt;br /&gt;
threads = 3&lt;br /&gt;
threads-batch = 3&lt;br /&gt;
&lt;br /&gt;
[gemma4-12b]&lt;br /&gt;
hf = google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&lt;br /&gt;
[gemma4-e4b]&lt;br /&gt;
hf = google/gemma-4-E4B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./llama-server \&lt;br /&gt;
  --models-preset models.ini \&lt;br /&gt;
  --host 0.0.0.0 \&lt;br /&gt;
  --port 9004 \&lt;br /&gt;
  --api-key sk-no-such-key&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clear models ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install pipx -y&lt;br /&gt;
pipx ensurepath&lt;br /&gt;
pipx install &amp;quot;huggingface_hub[cli]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hf download google/gemma-4-12B-it-qat-q4_0-gguf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/.cache/huggingface&lt;br /&gt;
rm -rf *&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup .bashrc ==&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2554</id>
		<title>Useful Commands/Package Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2554"/>
		<updated>2026-07-21T02:35:37Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Division Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== general ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install scoop ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get path of an executable ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gcm php&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t use &#039;&#039;&#039;where php&#039;&#039;&#039;, it&#039;s very slow.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== winget ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install PowerShell || Required ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget install --id Microsoft.PowerShell --source winget --installer-type wix --override &amp;quot;CREATE_DESKTOP_SHORTCUT=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t install &#039;&#039;&#039;with default options&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget source update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== scoop ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scoop update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Division Architecture ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! WinGet&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all GUI applications)&amp;lt;/small&amp;gt;&lt;br /&gt;
! Scoop&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all CLI &amp;amp; development tools)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* Chrome / Edge&lt;br /&gt;
* VS Code / JetBrains&lt;br /&gt;
* Docker / Git&lt;br /&gt;
* Discord / Spotify&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* PHP / Composer&lt;br /&gt;
* Node.js / NVM / Bun&lt;br /&gt;
* Python / Go / Rust&lt;br /&gt;
* Neovim / kubectl / 7zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| List how many top packages installed by me. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-mark showmanual | grep -E &#039;top$&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List files owned by package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -L openvino-2026.2.1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List all packages installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg --get-selections&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package not installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache show openssl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -s openssl | grep &#039;^Version&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== OSX ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install beta package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ brew info jython&lt;br /&gt;
jython: stable 2.5.3, devel 2.7-b1&lt;br /&gt;
...&lt;br /&gt;
$ brew install --devel jython&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List compiling options of a package for brew install ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# version / dependencies / build options&lt;br /&gt;
brew info graphviz&lt;br /&gt;
&lt;br /&gt;
# build options only&lt;br /&gt;
brew options graphviz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Remove unused packages.&amp;lt;br/&amp;gt;This action could make self-compiling executables miss link for libraries (*.so, *.dylib)  ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
brew cleanup&lt;br /&gt;
brew cleanup $FORMULA&lt;br /&gt;
brew cleanup -n # dry-run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2553</id>
		<title>Useful Commands/Package Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2553"/>
		<updated>2026-07-21T02:35:23Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* Division Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== general ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install scoop ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get path of an executable ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gcm php&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t use &#039;&#039;&#039;where php&#039;&#039;&#039;, it&#039;s very slow.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== winget ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install PowerShell || Required ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget install --id Microsoft.PowerShell --source winget --installer-type wix --override &amp;quot;CREATE_DESKTOP_SHORTCUT=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t install &#039;&#039;&#039;with default options&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget source update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== scoop ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scoop update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Division Architecture ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- style=&amp;quot;background-color: #eaecf0;&amp;quot;&lt;br /&gt;
! WinGet&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all GUI applications)&amp;lt;/small&amp;gt;&lt;br /&gt;
! Scoop&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all CLI &amp;amp; development tools)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* Chrome / Edge&lt;br /&gt;
* VS Code / JetBrains&lt;br /&gt;
* Docker / Git&lt;br /&gt;
* Discord / Spotify&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* PHP / Composer&lt;br /&gt;
* Node.js / NVM / Bun&lt;br /&gt;
* Python / Go / Rust&lt;br /&gt;
* Neovim / kubectl / 7zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| List how many top packages installed by me. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-mark showmanual | grep -E &#039;top$&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List files owned by package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -L openvino-2026.2.1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List all packages installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg --get-selections&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package not installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache show openssl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -s openssl | grep &#039;^Version&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== OSX ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install beta package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ brew info jython&lt;br /&gt;
jython: stable 2.5.3, devel 2.7-b1&lt;br /&gt;
...&lt;br /&gt;
$ brew install --devel jython&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List compiling options of a package for brew install ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# version / dependencies / build options&lt;br /&gt;
brew info graphviz&lt;br /&gt;
&lt;br /&gt;
# build options only&lt;br /&gt;
brew options graphviz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Remove unused packages.&amp;lt;br/&amp;gt;This action could make self-compiling executables miss link for libraries (*.so, *.dylib)  ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
brew cleanup&lt;br /&gt;
brew cleanup $FORMULA&lt;br /&gt;
brew cleanup -n # dry-run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2552</id>
		<title>Useful Commands/Package Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2552"/>
		<updated>2026-07-21T02:35:12Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* review */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== general ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install scoop ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get path of an executable ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gcm php&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t use &#039;&#039;&#039;where php&#039;&#039;&#039;, it&#039;s very slow.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== winget ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install PowerShell || Required ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget install --id Microsoft.PowerShell --source winget --installer-type wix --override &amp;quot;CREATE_DESKTOP_SHORTCUT=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t install &#039;&#039;&#039;with default options&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget source update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== scoop ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scoop update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Division Architecture ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 100%;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;background-color: #eaecf0;&amp;quot;&lt;br /&gt;
! WinGet&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all GUI applications)&amp;lt;/small&amp;gt;&lt;br /&gt;
! Scoop&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all CLI &amp;amp; development tools)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* Chrome / Edge&lt;br /&gt;
* VS Code / JetBrains&lt;br /&gt;
* Docker / Git&lt;br /&gt;
* Discord / Spotify&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* PHP / Composer&lt;br /&gt;
* Node.js / NVM / Bun&lt;br /&gt;
* Python / Go / Rust&lt;br /&gt;
* Neovim / kubectl / 7zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| List how many top packages installed by me. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-mark showmanual | grep -E &#039;top$&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List files owned by package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -L openvino-2026.2.1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List all packages installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg --get-selections&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package not installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache show openssl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -s openssl | grep &#039;^Version&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== OSX ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install beta package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ brew info jython&lt;br /&gt;
jython: stable 2.5.3, devel 2.7-b1&lt;br /&gt;
...&lt;br /&gt;
$ brew install --devel jython&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List compiling options of a package for brew install ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# version / dependencies / build options&lt;br /&gt;
brew info graphviz&lt;br /&gt;
&lt;br /&gt;
# build options only&lt;br /&gt;
brew options graphviz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Remove unused packages.&amp;lt;br/&amp;gt;This action could make self-compiling executables miss link for libraries (*.so, *.dylib)  ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
brew cleanup&lt;br /&gt;
brew cleanup $FORMULA&lt;br /&gt;
brew cleanup -n # dry-run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2551</id>
		<title>Useful Commands/Package Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2551"/>
		<updated>2026-07-21T02:34:40Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* review */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== general ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install scoop ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get path of an executable ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gcm php&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t use &#039;&#039;&#039;where php&#039;&#039;&#039;, it&#039;s very slow.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== winget ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install PowerShell || Required ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget install --id Microsoft.PowerShell --source winget --installer-type wix --override &amp;quot;CREATE_DESKTOP_SHORTCUT=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t install &#039;&#039;&#039;with default options&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget source update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== scoop ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scoop update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== review ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 100%;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Windows Package Management Division Architecture&#039;&#039;&#039;&lt;br /&gt;
|- style=&amp;quot;background-color: #eaecf0;&amp;quot;&lt;br /&gt;
! WinGet&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all GUI applications)&amp;lt;/small&amp;gt;&lt;br /&gt;
! Scoop&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(For all CLI &amp;amp; development tools)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* Chrome / Edge&lt;br /&gt;
* VS Code / JetBrains&lt;br /&gt;
* Docker / Git&lt;br /&gt;
* Discord / Spotify&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* PHP / Composer&lt;br /&gt;
* Node.js / NVM / Bun&lt;br /&gt;
* Python / Go / Rust&lt;br /&gt;
* Neovim / kubectl / 7zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| List how many top packages installed by me. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-mark showmanual | grep -E &#039;top$&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List files owned by package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -L openvino-2026.2.1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List all packages installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg --get-selections&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package not installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache show openssl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -s openssl | grep &#039;^Version&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== OSX ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install beta package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ brew info jython&lt;br /&gt;
jython: stable 2.5.3, devel 2.7-b1&lt;br /&gt;
...&lt;br /&gt;
$ brew install --devel jython&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List compiling options of a package for brew install ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# version / dependencies / build options&lt;br /&gt;
brew info graphviz&lt;br /&gt;
&lt;br /&gt;
# build options only&lt;br /&gt;
brew options graphviz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Remove unused packages.&amp;lt;br/&amp;gt;This action could make self-compiling executables miss link for libraries (*.so, *.dylib)  ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
brew cleanup&lt;br /&gt;
brew cleanup $FORMULA&lt;br /&gt;
brew cleanup -n # dry-run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2550</id>
		<title>Useful Commands/Package Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2550"/>
		<updated>2026-07-21T02:34:04Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* review */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== general ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install scoop ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get path of an executable ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gcm php&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t use &#039;&#039;&#039;where php&#039;&#039;&#039;, it&#039;s very slow.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== winget ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install PowerShell || Required ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget install --id Microsoft.PowerShell --source winget --installer-type wix --override &amp;quot;CREATE_DESKTOP_SHORTCUT=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t install &#039;&#039;&#039;with default options&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget source update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== scoop ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scoop update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== review ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 100%;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Windows 系統套件管理分工架構&#039;&#039;&#039;&lt;br /&gt;
|- style=&amp;quot;background-color: #eaecf0;&amp;quot;&lt;br /&gt;
! WinGet&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(負責所有 GUI 應用)&amp;lt;/small&amp;gt;&lt;br /&gt;
! Scoop&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(負責所有 CLI 與開發工具)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* Chrome / Edge&lt;br /&gt;
* VS Code / JetBrains&lt;br /&gt;
* Docker / Git&lt;br /&gt;
* Discord / Spotify&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* PHP / Composer&lt;br /&gt;
* Node.js / NVM / Bun&lt;br /&gt;
* Python / Go / Rust&lt;br /&gt;
* Neovim / kubectl / 7zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| List how many top packages installed by me. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-mark showmanual | grep -E &#039;top$&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List files owned by package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -L openvino-2026.2.1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List all packages installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg --get-selections&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package not installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache show openssl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -s openssl | grep &#039;^Version&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== OSX ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install beta package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ brew info jython&lt;br /&gt;
jython: stable 2.5.3, devel 2.7-b1&lt;br /&gt;
...&lt;br /&gt;
$ brew install --devel jython&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List compiling options of a package for brew install ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# version / dependencies / build options&lt;br /&gt;
brew info graphviz&lt;br /&gt;
&lt;br /&gt;
# build options only&lt;br /&gt;
brew options graphviz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Remove unused packages.&amp;lt;br/&amp;gt;This action could make self-compiling executables miss link for libraries (*.so, *.dylib)  ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
brew cleanup&lt;br /&gt;
brew cleanup $FORMULA&lt;br /&gt;
brew cleanup -n # dry-run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
	<entry>
		<id>https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2549</id>
		<title>Useful Commands/Package Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.fundamental-ramen.com/index.php?title=Useful_Commands/Package_Management&amp;diff=2549"/>
		<updated>2026-07-21T02:32:04Z</updated>

		<summary type="html">&lt;p&gt;Tacoball: /* OSX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows ==&lt;br /&gt;
&lt;br /&gt;
=== general ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install scoop ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Get path of an executable ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
gcm php&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t use &#039;&#039;&#039;where php&#039;&#039;&#039;, it&#039;s very slow.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== winget ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install PowerShell || Required ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget install --id Microsoft.PowerShell --source winget --installer-type wix --override &amp;quot;CREATE_DESKTOP_SHORTCUT=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&#039;t install &#039;&#039;&#039;with default options&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
winget source update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== scoop ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || RunAs || Command&lt;br /&gt;
|-&lt;br /&gt;
| Update package list || ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scoop update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== review ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; width: 100%;&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Windows 系統套件管理分工架構&#039;&#039;&#039;&lt;br /&gt;
|- style=&amp;quot;background-color: #eaecf0;&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%;&amp;quot; | WinGet&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(負責所有 GUI 應用)&amp;lt;/small&amp;gt;&lt;br /&gt;
! style=&amp;quot;width: 50%;&amp;quot; | Scoop&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;(負責所有 CLI 與開發工具)&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* Chrome / Edge&lt;br /&gt;
* VS Code / JetBrains&lt;br /&gt;
* Docker / Git&lt;br /&gt;
* Discord / Spotify&lt;br /&gt;
| style=&amp;quot;vertical-align: top; text-align: left;&amp;quot; |&lt;br /&gt;
* PHP / Composer&lt;br /&gt;
* Node.js / NVM / Bun&lt;br /&gt;
* Python / Go / Rust&lt;br /&gt;
* Neovim / kubectl / 7zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| List how many top packages installed by me. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
apt-mark showmanual | grep -E &#039;top$&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List files owned by package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -L openvino-2026.2.1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List all packages installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg --get-selections&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package not installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache show openssl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Show version info of a package installed. ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
dpkg -s openssl | grep &#039;^Version&#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== OSX ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Purpose || Command&lt;br /&gt;
|-&lt;br /&gt;
| Install beta package ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ brew info jython&lt;br /&gt;
jython: stable 2.5.3, devel 2.7-b1&lt;br /&gt;
...&lt;br /&gt;
$ brew install --devel jython&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| List compiling options of a package for brew install ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# version / dependencies / build options&lt;br /&gt;
brew info graphviz&lt;br /&gt;
&lt;br /&gt;
# build options only&lt;br /&gt;
brew options graphviz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Remove unused packages.&amp;lt;br/&amp;gt;This action could make self-compiling executables miss link for libraries (*.so, *.dylib)  ||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
brew cleanup&lt;br /&gt;
brew cleanup $FORMULA&lt;br /&gt;
brew cleanup -n # dry-run&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tacoball</name></author>
	</entry>
</feed>