inside-beam / recipes.html
rycerzes's picture
Recipe code blocks: one box, syntax highlighting
7832600 verified
Raw History Blame Contribute Delete
9.99 kB
<!DOCTYPE html><html lang="en" data-theme="dark"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Recipes 路 Inside Beam</title><meta name="description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><link rel="canonical" href="https://rycerzes-inside-beam.hf.space/recipes.html"><meta property="og:type" content="article"><meta property="og:title" content="Recipes 路 Inside Beam"><meta property="og:description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><meta property="og:url" content="https://rycerzes-inside-beam.hf.space/recipes.html"><meta property="og:locale" content="en_US"><meta property="og:site_name" content="Recipes 路 Inside Beam"><meta property="og:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta property="og:image:alt" content="Recipes 路 Inside Beam"><meta property="article:author" content="Swapnil Dutta"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Recipes 路 Inside Beam"><meta name="twitter:description" content="Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin."><meta name="twitter:image" content="https://rycerzes-inside-beam.static.hf.space/og.png"><meta name="twitter:image:alt" content="Recipes 路 Inside Beam"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Recipes 路 Inside Beam","description":"Curated Beam-1.0-501B experts that steer it to one theme, each runnable with the beam-steer vLLM plugin.","author":[{"@type":"Person","name":"Swapnil Dutta"}],"publisher":{"@type":"Organization","name":"Hugging Face","url":"https://huggingface.co"},"keywords":"interpretability","mainEntityOfPage":"https://rycerzes-inside-beam.hf.space/recipes.html","image":["https://rycerzes-inside-beam.static.hf.space/og.png"]}</script><link rel="stylesheet" href="/_astro/about.DLgs01lq.css">
<style>.bar.svelte-1c2sm3t{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 18px}input.svelte-1c2sm3t{flex:0 1 340px;font:inherit;padding:8px 12px;border-radius:8px;border:1px solid var(--border-color);background:var(--surface-bg);color:var(--text-color)}.count.svelte-1c2sm3t{color:var(--muted-color);font-size:13px}.grid.svelte-1c2sm3t{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:14px;gap:14px}.card.svelte-1c2sm3t{display:flex;flex-direction:column;gap:6px;text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--surface-bg);border:1px solid var(--border-color);border-radius:12px;padding:16px 18px}.card.svelte-1c2sm3t:hover,.card.svelte-1c2sm3t:focus-visible{border-color:var(--primary-color);outline:none}.title.svelte-1c2sm3t{font-size:19px;font-weight:650;line-height:1.25}.unit.svelte-1c2sm3t{font-family:var(--font-mono);font-size:13px;color:var(--primary-color)}.q.svelte-1c2sm3t{font-size:12px;color:var(--muted-color);margin-top:4px}.a.svelte-1c2sm3t{font-size:14px;line-height:1.45;color:var(--text-color)}.tags.svelte-1c2sm3t{margin-top:auto;padding-top:6px;display:flex;gap:6px;flex-wrap:wrap}.chip.svelte-1c2sm3t{font-size:12px;padding:1px 9px;border-radius:999px;border:1px solid var(--border-color);color:var(--muted-color)}.chip.ok.svelte-1c2sm3t{color:var(--success-color)}
</style>
<link rel="stylesheet" href="/_astro/explorer.y9HGsqM2.css"><script type="module" src="/_astro/page.BgPfbzVk.js"></script></head> <body class="app-body"> <header class="site-head"> <div class="sh-brand"> <a class="sh-name" href="/index.html">Inside Beam</a> <span class="sh-sub">12,544 experts of Beam-1.0-501B</span> </div> <nav class="sh-pills" aria-label="Pages"> <a href="/index.html">Studio</a><a href="/recipes.html" class="on" aria-current="page">Recipes</a><a href="/explorer.html">Explorer</a><a href="/about.html">About</a> </nav> <nav class="sh-links" aria-label="Project"> <a href="https://rycerz.es/blog/inside-beam">Write-up</a> <a href="https://github.com/rycerzes/beam-inside/blob/main/research_log.md">Research log</a> <a href="https://huggingface.co/datasets/rycerzes/beam-expert-atlas">Dataset</a> <a href="https://github.com/rycerzes/beam-inside">Code</a> </nav> </header> <main class="app-main"> <h1>Recipes</h1> <p class="app-lede">Each recipe is one expert of Beam-1.0-501B, pushed into the running model. Every one passed the steering test
against effect-matched random directions and the blind judge matched its output with high confidence; the name is
Beam's own label for the expert. Open one to compare with unsteered Beam, try the other prompts and doses, and copy
it as JSON or Python for the <a href="https://github.com/rycerzes/beam-inside/tree/main/steer">beam-steer</a> plugin.</p> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1XDsFk" component-url="/_astro/Recipes.BBr12ptW.js" component-export="default" renderer-url="/_astro/client.CWY0IrnN.js" props="{}" ssr="" client="load" opts="{&quot;name&quot;:&quot;Recipes&quot;,&quot;value&quot;:true}" await-children=""><div class="bar svelte-1c2sm3t"><input type="search" placeholder="search recipes" aria-label="Search recipes" class="svelte-1c2sm3t" value=""> <span class="count svelte-1c2sm3t">0 recipes 路 every one steering-significant and matched by the blind judge</span></div> <div class="grid svelte-1c2sm3t"></div> <dialog aria-label="Expert" class="svelte-1xxwurk"><form method="dialog" data-svelte-h="svelte-hb0f8y"><button class="close svelte-1xxwurk" aria-label="Close">脳</button></form> </dialog><!--astro:end--></astro-island> </main> <footer class="app-footer">
By Swapnil Dutta (<a href="https://huggingface.co/rycerzes">rycerzes</a>). Built for Reflection's <a href="https://huggingface.co/reflection/Beam-1.0-501B-A23B/discussions/5">Build with Beam</a>
contest; not affiliated with Reflection. Data and code Apache-2.0
(<a href="https://huggingface.co/datasets/rycerzes/beam-expert-atlas">dataset</a>,
<a href="https://github.com/rycerzes/beam-inside">code</a>). Site built on the
<a href="https://huggingface.co/spaces/tfrere/research-article-template">research article template</a> by Thibaud Frere (CC BY 4.0).
</footer> </body></html>