<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://subvention.zooid.org/index.php?action=history&amp;feed=atom&amp;title=Loisirs_r%C3%A9cr%C3%A9atifs_et_communautaires_de_Rosemont</id>
	<title>Loisirs récréatifs et communautaires de Rosemont - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://subvention.zooid.org/index.php?action=history&amp;feed=atom&amp;title=Loisirs_r%C3%A9cr%C3%A9atifs_et_communautaires_de_Rosemont"/>
	<link rel="alternate" type="text/html" href="https://subvention.zooid.org/index.php?title=Loisirs_r%C3%A9cr%C3%A9atifs_et_communautaires_de_Rosemont&amp;action=history"/>
	<updated>2026-10-22T17:45:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.11</generator>
	<entry>
		<id>https://subvention.zooid.org/index.php?title=Loisirs_r%C3%A9cr%C3%A9atifs_et_communautaires_de_Rosemont&amp;diff=5542&amp;oldid=prev</id>
		<title>DavidM: Created page with &quot;{{Subventions |import ref=Subventions 4195 |Code postal=H1T 2Z9 |Rue=6755, 36e Avenue |Ville=Montréal |Ministère=MESSF(Solidarité sociale) }}&quot;</title>
		<link rel="alternate" type="text/html" href="https://subvention.zooid.org/index.php?title=Loisirs_r%C3%A9cr%C3%A9atifs_et_communautaires_de_Rosemont&amp;diff=5542&amp;oldid=prev"/>
		<updated>2011-01-29T13:13:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Subventions |import ref=Subventions 4195 |Code postal=H1T 2Z9 |Rue=6755, 36e Avenue |Ville=Montréal |Ministère=MESSF(Solidarité sociale) }}&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I briefly had a Macbook M3 Max with 64GB. It was pretty good at running local LLMs, but couldn&amp;#039;t stand the ergonomics and not being able to run Linux, so returned it.&lt;br /&gt;
&lt;br /&gt;
I picked up a Thinkpad P16s with an AMD 7840u to give Linux hardware a chance to catch up with Apple silicon. It&amp;#039;s an amazing computer for the price, and can run LLMs. Here&amp;#039;s how I set up llama.cpp to use ROCm.&lt;br /&gt;
&lt;br /&gt;
Install ROCm, set an env variable for the 780m: &amp;lt;code&amp;gt;export HSA_OVERRIDE_GFX_VERSION=11.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
clone llama.cpp and compile it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make -j16 LLAMA_HIPBLAS=1 LLAMA_HIP_UMA=1 AMDGPU_TARGETS=gfx1030 DLLAMA_HIP_UMA=&lt;br /&gt;
ON&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
run it like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./main -m /home/vid/jan/models/mistral-ins-7b-q4/mistral-7b-instruct-v0.2.Q4_K_M&lt;br /&gt;
.gguf -p &amp;quot;example code for a lit Web Component that reverses a string&amp;quot; -n 50 -e &lt;br /&gt;
-ngl 16  -n -1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ggml_cuda_init: found 1 ROCm devices:&lt;br /&gt;
   Device 0: AMD Radeon Graphics, compute capability 11.0, VMM: no&lt;br /&gt;
 llm_load_tensors: ggml ctx size =    0.22 MiB&lt;br /&gt;
 llm_load_tensors: offloading 24 repeating layers to GPU&lt;br /&gt;
 llm_load_tensors: offloaded 24/33 layers to GPU&lt;br /&gt;
 llm_load_tensors:      ROCm0 buffer size =  2978.91 MiB&lt;br /&gt;
 llm_load_tensors:        CPU buffer size =  4165.37 MiB&lt;br /&gt;
 ...............................................................................................&lt;br /&gt;
 llama_new_context_with_model: n_ctx      = 512&lt;br /&gt;
 llama_new_context_with_model: n_batch    = 512&lt;br /&gt;
 llama_new_context_with_model: n_ubatch   = 512&lt;br /&gt;
 llama_new_context_with_model: freq_base  = 1000000.0&lt;br /&gt;
 llama_new_context_with_model: freq_scale = 1&lt;br /&gt;
 llama_kv_cache_init:      ROCm0 KV buffer size =    48.00 MiB&lt;br /&gt;
 llama_kv_cache_init:  ROCm_Host KV buffer size =    16.00 MiB&lt;br /&gt;
 llama_new_context_with_model: KV self size  =   64.00 MiB, K (f16):   32.00 MiB, V (f16):   32.00 MiB&lt;br /&gt;
 llama_new_context_with_model:  ROCm_Host  output buffer size =     0.12 MiB&lt;br /&gt;
 llama_new_context_with_model:      ROCm0 compute buffer size =   173.04 MiB&lt;br /&gt;
 llama_new_context_with_model:  ROCm_Host compute buffer size =     9.01 MiB&lt;br /&gt;
 llama_new_context_with_model: graph nodes  = 1030&lt;br /&gt;
 llama_new_context_with_model: graph splits = 92&lt;br /&gt;
 &lt;br /&gt;
 system_info: n_threads = 8 / 16 | AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 |&lt;br /&gt;
 sampling:&lt;br /&gt;
         repeat_last_n = 64, repeat_penalty = 1.000, frequency_penalty = 0.000, presence_penalty = 0.000&lt;br /&gt;
         top_k = 40, tfs_z = 1.000, top_p = 0.950, min_p = 0.050, typical_p = 1.000, temp = 0.800&lt;br /&gt;
         mirostat = 0, mirostat_lr = 0.100, mirostat_ent = 5.000&lt;br /&gt;
 sampling order:&lt;br /&gt;
 CFG -&amp;gt; Penalties -&amp;gt; top_k -&amp;gt; tfs_z -&amp;gt; typical_p -&amp;gt; top_p -&amp;gt; min_p -&amp;gt; temperature&lt;br /&gt;
 generate: n_ctx = 512, n_batch = 2048, n_predict = -1, n_keep = 1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  simple example code for a lit Web Component that reverses a string input&lt;br /&gt;
 &lt;br /&gt;
 Hi there! Here&amp;#039;s a simple example of a Lit Web Component that reverses a string input:&lt;br /&gt;
 &lt;br /&gt;
 ```javascript&lt;br /&gt;
 import { Component, html, css } from &amp;#039;lit&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 class ReverseString extends Component {&lt;br /&gt;
   static styles = css`&lt;br /&gt;
     input {&lt;br /&gt;
       padding: 10px;&lt;br /&gt;
       margin-bottom: 20px;&lt;br /&gt;
     }&lt;br /&gt;
   `;&lt;br /&gt;
 &lt;br /&gt;
   static properties = {&lt;br /&gt;
     value: { type: String }&lt;br /&gt;
   };&lt;br /&gt;
 &lt;br /&gt;
   constructor() {&lt;br /&gt;
     super();&lt;br /&gt;
     this.value = &amp;#039;&amp;#039;;&lt;br /&gt;
   }&lt;br /&gt;
  &lt;br /&gt;
   render() {&lt;br /&gt;
     return html`&lt;br /&gt;
       &amp;lt;style&amp;gt;${this.constructor.styles}&amp;lt;/style&amp;gt;&lt;br /&gt;
       &amp;lt;input @input=${this._handleInputChange} value=${this.value} type=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt; p&amp;gt;Reversed string: ${this._reverseString(this.value)}&amp;lt; /p&amp;gt;&lt;br /&gt;
     `;&lt;br /&gt;
   }&lt;br /&gt;
  &lt;br /&gt;
   _reverseString(str) {&lt;br /&gt;
     return str.split(&amp;#039;&amp;#039;).reverse().join(&amp;#039;&amp;#039;);&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   _handleInputChange(event) {&lt;br /&gt;
     this.value = event.target.value;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 customElements.define(&amp;#039;reverse-string&amp;#039;, ReverseString);&lt;br /&gt;
 ```&lt;br /&gt;
 &lt;br /&gt;
 In this example, we define a custom Web Component called `reverse-string` that uses Lit for rendering and handling user input. The `ReverseString` class defines a render method that returns an HTML template with an input field and a paragraph that displays the reversed string. The component also defines a `_reverseString` method that reverses a given string using the `split`, `reverse`, and `join` array methods, and a `_handleInputChange` method that updates the component&amp;#039;s value whenever the input changes. Finally, we use the `customElements.define` method to register our component with the browser.&lt;br /&gt;
 &lt;br /&gt;
 You can use this component in your HTML like this:&lt;br /&gt;
 &lt;br /&gt;
 ```html&lt;br /&gt;
 &amp;lt;reverse-string&amp;gt;&amp;lt;/reverse-string&amp;gt;&lt;br /&gt;
 ``` [end of text]&lt;br /&gt;
 &lt;br /&gt;
 llama_print_timings:        load time =    2865.16 ms&lt;br /&gt;
 llama_print_timings:      sample time =      13.64 ms /   442 runs   (    0.03 ms per token, 32407.07 tokens per second)&lt;br /&gt;
 llama_print_timings: prompt eval time =    1281.98 ms /    14 tokens (   91.57 ms per token,    10.92 tokens per second)&lt;br /&gt;
 llama_print_timings:        eval time =  100829.12 ms /   441 runs   (  228.64 ms per token,     4.37 tokens per second)&lt;br /&gt;
 llama_print_timings:       total time =  102397.06 ms /   455 tokens&lt;br /&gt;
 Log end&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s definitely not going to win any speed prizes even though is a smaller model, but it could be ok for non time sensitive results, or where using a tiny, faster model is useful.&lt;br /&gt;
&lt;br /&gt;
{{Blikied|April 13 12, 2024}}&lt;/div&gt;</summary>
		<author><name>DavidM</name></author>
	</entry>
</feed>