grayling 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {grayling-0.1.1 → grayling-0.1.2}/Cargo.toml +1 -1
- {grayling-0.1.1 → grayling-0.1.2}/PKG-INFO +1 -1
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/Cargo.lock +4 -4
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/Cargo.toml +1 -1
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/examples/try_it.py +2 -2
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/README.md +2 -2
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-pins/src/lib.rs +4 -3
- {grayling-0.1.1 → grayling-0.1.2}/LICENSE +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/NOTICE +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/README.md +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/LICENSE +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/NOTICE +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/README.md +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/examples/host_client.py +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/examples/server.py +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/bindings/python/src/lib.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/Cargo.toml +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/LICENSE +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/api.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/cache.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/chars.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/config.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/data/misspellings.json +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/data/typo.json +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/decode.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/engine/tests.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/engine.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/error.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/fixes.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/infill.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/lib.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/lid.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/llm.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/mix.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/rows.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/simd.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/slm.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/text.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/tokbytes.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling/src/vocab.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-pins/Cargo.toml +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/Cargo.toml +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/src/client.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/src/kept.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/src/lib.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/src/messages.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/src/paths.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/crates/grayling-protocol/src/winproc.rs +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/pyproject.toml +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/__init__.py +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/__main__.py +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/_download.py +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/_errors.py +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/_grayling.pyi +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/py.typed +0 -0
- {grayling-0.1.1 → grayling-0.1.2}/python/grayling/types.py +0 -0
|
@@ -350,7 +350,7 @@ dependencies = [
|
|
|
350
350
|
|
|
351
351
|
[[package]]
|
|
352
352
|
name = "grayling"
|
|
353
|
-
version = "0.1.
|
|
353
|
+
version = "0.1.2"
|
|
354
354
|
dependencies = [
|
|
355
355
|
"bytemuck",
|
|
356
356
|
"half",
|
|
@@ -366,11 +366,11 @@ dependencies = [
|
|
|
366
366
|
|
|
367
367
|
[[package]]
|
|
368
368
|
name = "grayling-pins"
|
|
369
|
-
version = "0.1.
|
|
369
|
+
version = "0.1.2"
|
|
370
370
|
|
|
371
371
|
[[package]]
|
|
372
372
|
name = "grayling-protocol"
|
|
373
|
-
version = "0.1.
|
|
373
|
+
version = "0.1.2"
|
|
374
374
|
dependencies = [
|
|
375
375
|
"interprocess",
|
|
376
376
|
"libc",
|
|
@@ -382,7 +382,7 @@ dependencies = [
|
|
|
382
382
|
|
|
383
383
|
[[package]]
|
|
384
384
|
name = "grayling-python"
|
|
385
|
-
version = "0.1.
|
|
385
|
+
version = "0.1.2"
|
|
386
386
|
dependencies = [
|
|
387
387
|
"grayling",
|
|
388
388
|
"grayling-pins",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"""The seven texts of the model card (https://huggingface.co/algoprog/
|
|
1
|
+
"""The seven texts of the model card (https://huggingface.co/algoprog/grayling-49m), through the Python package.
|
|
2
2
|
|
|
3
3
|
python try_it.py # downloads the small model (314 MB) once, into the cache folder of the engine host
|
|
4
|
-
GRAYLING_MODEL_DIR=/path/to/
|
|
4
|
+
GRAYLING_MODEL_DIR=/path/to/grayling-49m python try_it.py # a folder you have already
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import os
|
|
@@ -12,8 +12,8 @@ use grayling::{Engine, LoadOptions, Request};
|
|
|
12
12
|
|
|
13
13
|
fn main() -> grayling::Result<()> {
|
|
14
14
|
let mut engine = Engine::new();
|
|
15
|
-
// The small model's folder: https://huggingface.co/algoprog/
|
|
16
|
-
engine.load(Path::new("
|
|
15
|
+
// The small model's folder: https://huggingface.co/algoprog/grayling-49m (about 314 MB; 195 MB without `replay/`).
|
|
16
|
+
engine.load(Path::new("grayling-49m"), None, None, &LoadOptions::default(), None, None)?;
|
|
17
17
|
|
|
18
18
|
let request = Request { text: "Please let me know if you have any ques".into(), precision: Some(0.3), ..Request::default() };
|
|
19
19
|
let answer = engine.suggest(&request, None)?;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//! What is downloaded, pinned: llama.cpp's prebuilt `llama-server` (one release, each asset's size and SHA-256),
|
|
2
2
|
//! Qwen3.5-0.8B-Base as GGUF files (one revision of ggml-org's repository), the small model of Grayling's own (a release on
|
|
3
|
-
//! Hugging Face, `algoprog/
|
|
3
|
+
//! Hugging Face, `algoprog/grayling-49m`, at one revision), and the `uv` program that makes the private Python.
|
|
4
4
|
//!
|
|
5
5
|
//! A port of Hydor's `server/suggest/pins.ts`; the numbers are the same. [`Pins`] holds them as owned values so that a test can
|
|
6
6
|
//! put others in their place; [`Pins::real`] is what the program uses.
|
|
@@ -100,8 +100,9 @@ pub struct PinnedFile {
|
|
|
100
100
|
pub sha256: &'static str,
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
/// The small model's release (<https://huggingface.co/algoprog/
|
|
104
|
-
|
|
103
|
+
/// The small model's release (<https://huggingface.co/algoprog/grayling-49m>, called `algoprog/hydor-suggest-49m` until 30 November 2026, an address Hugging Face still
|
|
104
|
+
/// leads here; AGPL-3.0-only; its tokenizer Apache-2.0).
|
|
105
|
+
pub const SMALL_MODEL_REPO: &str = "algoprog/grayling-49m";
|
|
105
106
|
pub const SMALL_MODEL_REVISION: &str = "db7f41395e51501c99b8896bf63c98e7e445a18b";
|
|
106
107
|
pub const SMALL_MODEL_FILES: &[PinnedFile] = &[
|
|
107
108
|
PinnedFile {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|