Downloads · 30 days
22
34% of all-time downloads
FlaneAI/LaGrange-1.0-Flash
LaGrange-1.0-Flash is a feature extraction model from FlaneAI. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as other.
LaGrange 1.0 Flash is a hybrid symbolic and neural research model packaged as a Hugging Face custom Transformers repository. It combines a small PyTorch interoperability bridge with an embedded research runtime for ma…
Downloads · 30 days
22
34% of all-time downloads
All-time downloads
64
Public
Parameters
29.2K
24.8 MB on disk
Likes
0
Public
Click a slice to open those files.
.py24.3 MB · 98%
From the Hugging Face model README
LaGrange 1.0 Flash is a hybrid symbolic and neural research model packaged as a Hugging Face custom Transformers repository. It combines a small PyTorch interoperability bridge with an embedded research runtime for mathematics, physics, theorem reasoning, machine-learning mathematics, mechanistic analysis, and program synthesis.
This repository is not presented as a pretrained causal language model. The PyTorch bridge weights are provided for interoperability and are marked as not pretrained. The research capabilities are implemented by the bundled runtime and exposed through model.research(...).
pip install -r requirements.txt
Replace YOUR_ORG/LaGrange-1.0-Flash with the repository you publish. Because this model uses custom Python code, review the repository and pin a revision in production.
from transformers import AutoModel, AutoTokenizer
repo_id = "YOUR_ORG/LaGrange-1.0-Flash"
revision = "main"
tokenizer = AutoTokenizer.from_pretrained(
repo_id,
revision=revision,
trust_remote_code=True,
)
model = AutoModel.from_pretrained(
repo_id,
revision=revision,
trust_remote_code=True,
)
batch = tokenizer("machine learning mathematics", return_tensors="pt")
output = model(**batch)
print(output.pooler_output.shape)
result = model.research({
"domain": "ml_math",
"action": "softmax_jacobian",
"logits": [0.2, -0.1, 1.3, 2.0],
})
print(result)
Representative top-level domains include physics, math, universal_math, meta_math, theorem, ml_math, mechanistic, program_synthesis, function_discovery, and version_call.
The Hugging Face component contains:
The neural bridge is intentionally small. It is an interoperability layer, not a substitute for the symbolic and algorithmic runtime.
The release validator checks:
Run:
python validate_release.py
This repository uses custom Python code and therefore requires trust_remote_code=True. Review all Python files before loading a remote revision. For production deployments, pin an immutable commit hash rather than relying on main. See SECURITY.md.
A custom GGUF v3 companion is included under gguf/. It stores the bridge tensors and the embedded runtime. Its architecture identifier is lagrange-runtime. The file is intended for the provided companion loader and for future custom llama.cpp integration; it is not labeled as a Llama-compatible checkpoint.
Before publishing, run the local validator and review the license terms.
python validate_release.py
hf auth login
python publish_to_hub.py YOUR_ORG/LaGrange-1.0-Flash
For a production release, test the uploaded commit with the real transformers package and load it by immutable commit revision.
The repository uses license: mit.
Product: LaGrange 1.0 Flash Release: 1.0.0 Engine revision: 78