toka toimiva vedos

This commit is contained in:
2026-04-01 23:52:39 +03:00
parent 02f6684378
commit 9a72d35081
1420 changed files with 79953 additions and 64 deletions

View File

@@ -0,0 +1,29 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="MoonDream Model vision-to-text"><title>candle_transformers::models::moondream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-77263533.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="candle_transformers" data-themes="" data-resource-suffix="" data-rustdoc-version="1.94.1 (e408947bf 2026-03-25)" data-channel="1.94.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-b897f86f.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-7bab91a1.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-ffcac47a.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module moondream</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../candle_transformers/index.html">candle_<wbr>transformers</a><span class="version">0.8.4</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module moondream</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In candle_<wbr>transformers::<wbr>models</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">candle_transformers</a>::<wbr><a href="../index.html">models</a></div><h1>Module <span>moondream</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/candle_transformers/models/moondream.rs.html#1-366">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>MoonDream Model vision-to-text</p>
<p>Moondream is a computer-vision model that can answer real-world questions about images.
Its lightweight with only 1.6B parameters, enabling it to run on mobile phones and edge devices.
<a href="https://github.com/vikhyat/moondream">MoonDream Original Implementation</a></p>
<p>The model consists of:</p>
<ul>
<li>Vision encoder using a ViT-style architecture</li>
<li>Text decoder based on Microsofts Phi model</li>
<li>Vision projection module to align vision and text embeddings</li>
</ul>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2><img src="https://raw.githubusercontent.com/vikhyat/moondream/main/assets/demo-1.jpg" width="200">
<div class="example-wrap"><pre class="language-bash"><code># download an example image
wget https://raw.githubusercontent.com/vikhyat/moondream/main/assets/demo-1.jpg
# Now you can run Moondream from the `candle-examples` crate:
cargo run --example moondream \
--release -- \
--prompt &quot;What is the girl eating?&quot;
--image &quot;./demo-1.jpg&quot;
&gt; avavx: false, neon: true, simd128: false, f16c: false
&gt; temp: 0.00 repeat-penalty: 1.00 repeat-last-n: 64
&gt; retrieved the files in 3.395583ms
&gt; Running on CPU, to run on GPU(metal), build this example with `--features metal`
&gt; loaded the model in 5.485493792s
&gt; loaded and encoded the image Tensor[dims 3, 378, 378; f32] in 4.801396417s
&gt; starting the inference loop
&gt; The girl is eating a hamburger.&lt;
&gt; 9 tokens generated (0.68 token/s)</code></pre></div></div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Config.html" title="struct candle_transformers::models::moondream::Config">Config</a></dt><dt><a class="struct" href="struct.Encoder.html" title="struct candle_transformers::models::moondream::Encoder">Encoder</a></dt><dt><a class="struct" href="struct.Model.html" title="struct candle_transformers::models::moondream::Model">Model</a></dt><dt><a class="struct" href="struct.VisionConfig.html" title="struct candle_transformers::models::moondream::VisionConfig">Vision<wbr>Config</a></dt><dt><a class="struct" href="struct.VisionEncoder.html" title="struct candle_transformers::models::moondream::VisionEncoder">Vision<wbr>Encoder</a></dt></dl></section></div></main></body></html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Config","Encoder","Model","VisionConfig","VisionEncoder"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long