初始化项目,由ModelHub XC社区提供模型

Model: kroffske/shellcue-lfm2.5-230m-alpha
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-26 10:50:11 +08:00
commit 184f0e72a7
15 changed files with 324170 additions and 0 deletions

35
.gitattributes vendored Normal file
View File

@@ -0,0 +1,35 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text

71
LICENSE Normal file
View File

@@ -0,0 +1,71 @@
LFM Open License v1.0
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by this document.
"Licensor" shall mean Liquid AI, Inc.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
"Commercial Use" shall mean any use of the Work for direct or indirect commercial advantage or monetary compensation.
"Qualified Non-Profit Organization" shall mean a Legal Entity that is organized and operated exclusively for religious, charitable, scientific, testing for public safety, literary, or educational purposes, and which is exempt from federal income tax under Section 501(c)(3) of the United States Internal Revenue Code of 1986, as amended, or any equivalent non-profit or charitable organization in a foreign jurisdiction.
"Non-Commercial or Research Purposes" shall mean purposes that do not involve any use of the Work or a Derivative Work for Commercial Use.
"Threshold" shall mean annual revenue of 10 million United States dollars ($10,000,000) or more.
2. Grant of Copyright License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Commercial Use Limitation.
(a) The rights granted under this License for Commercial Use are conditioned upon You or Your Legal Entity not exceeding the Threshold.
(b) Any Commercial Use of the Work or a Derivative Work by a Legal Entity that exceeds the Threshold is not licensed under this Agreement.
(c) The Threshold shall not apply to a Qualified Non-Profit Organization's use of the Work or a Derivative Work for Non-Commercial or Research Purposes.
6. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
7. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except for the reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
8. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
11. Termination. This License will terminate automatically and immediately if You fail to comply with any of its terms and conditions. Upon termination, You must cease all use of the Work and any Derivative Works and delete all copies in Your possession.
END OF TERMS AND CONDITIONS

9
NOTICE Normal file
View File

@@ -0,0 +1,9 @@
ShellCue LFM2.5 230M Alpha
This distribution contains a modified derivative of LiquidAI/LFM2.5-230M-Base, pinned at
revision 9d2be5519834990d30996f878b6771cccbd24f2c, provided by Liquid AI, Inc. under the LFM Open
License v1.0 included in LICENSE.
MODIFICATION NOTICE: The base model weights were changed by full fine-tuning for
local shell-command suffix completion. This distribution is not the unmodified
upstream model. No upstream NOTICE file was present at the pinned base revision.

47
README.md Normal file
View File

@@ -0,0 +1,47 @@
---
license: other
license_name: lfm-open-license-v1.0
license_link: LICENSE
base_model: LiquidAI/LFM2.5-230M-Base
base_model_revision: 9d2be5519834990d30996f878b6771cccbd24f2c
base_model_relation: finetune
library_name: transformers
pipeline_tag: text-generation
tags:
- shellcue
- shell
- autocomplete
- causal-lm
---
# ShellCue LFM2.5 230M Alpha
Development alpha with `DEV_GRADE_SUPPORT` for local shell-command suffix completion.
This snapshot is not product-accepted, trusted, final, or production-ready. It predicts a short suffix
from masked recent command context and a typed prefix; it does not execute commands.
## Runtime
Use ShellCue `>=0.1.0a1`. Download and install this model by an immutable Hugging
Face commit OID, then run `shellcue model verify <snapshot-directory>` before use.
The readable `v0.1.0a1` tag is a non-moving alias, not the trust anchor.
## Origin and license
This model is a full fine-tune of `LiquidAI/LFM2.5-230M-Base` at revision
`9d2be5519834990d30996f878b6771cccbd24f2c`. The weights are distributed under the LFM Open License
v1.0 in `LICENSE`, not the MIT license used by the separate ShellCue runtime code.
See `NOTICE` for the modification notice and attribution. The license includes a
commercial-use limitation; review its complete terms before use or redistribution.
## Limitations
- Development evidence does not establish quality or safety for every shell session.
- Suggestions require user review and may be incorrect, incomplete, or unsafe.
- No hosted inference, telemetry, or implicit network download is part of runtime use.
## Integrity
- `model.safetensors` SHA-256: `c4f7973c48eb04fa2e8013f0d03171fcfb4ee27c157dea31e96020b12b84fb53`
- Base revision: `9d2be5519834990d30996f878b6771cccbd24f2c`
- Release contract: `shellcue.model.v1` and `shellcue.inference.v1`

13
checksums.sha256 Normal file
View File

@@ -0,0 +1,13 @@
30adf9d6478191fb87f2424f63ba0728598335aaf99cd2848ef17e8e545fe94b LICENSE
0ed23ab6dfe232e0f17b6ae990fb9aecabac88bcf229efc5df0e5021ba0c1cb9 NOTICE
ce1297f900b32a7af046ac3d752f9f4c51039c63b179ac9480933c80a7061385 README.md
df8f3ce731cd92b8a39c101ddb5a6c701a8c12ff1bf8c48f5c87d8c64e4e2387 config.json
e6a1ce8f16f9c3d6ac1f13bee18484f271a2566b5af238853c90fb9b2b5c5cda generation_config.json
bb732c13bebc9eeace5d1286d7ddc8e133f9fad533e2e169b59b6d360df6ccdf inference_config.json
94ab4946f9099e7d23edfb429be10f8c7da94e2bef86d2406280ea942d000f54 model.json
c4f7973c48eb04fa2e8013f0d03171fcfb4ee27c157dea31e96020b12b84fb53 model.safetensors
d0d4e848eab59ebf54bf13ff7bec80788ea5222274b5843e1a79e6916a50dc3b provenance.json
8b58926accf728ff66ea0dc478bf721db3eccf915d95b4b73ae85b3b36f73895 redaction_summary.json
63c9f0854189f36392a0dec115604bb830ace2942a4625a59e29d03e14bd1b1e schema.json
df1d8d5ec5d091b460562ffd545e4a5e91d17d4a0db7ebe733be34ed374377bd tokenizer.json
75c287923e252b08b0a0f1c367bbe557ab23a681d0b71c5a34e0932ddbe2f5ee tokenizer_config.json

66
config.json Normal file
View File

@@ -0,0 +1,66 @@
{
"architectures": [
"Lfm2ForCausalLM"
],
"block__name_mlp": "parallel_mlp_merged",
"block_auto_adjust_ff_dim": false,
"block_dim": 1024,
"block_ff_dim": 2560,
"block_ffn_dim_multiplier": 1.0,
"block_ffn_te_autocast": false,
"block_ffn_use_quantized_params": false,
"block_mlp_init_scale": 1.0,
"block_multiple_of": 256,
"block_norm_eps": 1e-05,
"block_out_init_scale": 1.0,
"block_sequence_parallel_norm_across_tp": false,
"block_use_swiglu": true,
"block_use_xavier_init": true,
"bos_token_id": 1,
"conv_L_cache": 3,
"conv_bias": false,
"conv_dim": 1024,
"conv_use_xavier_init": true,
"dtype": "float32",
"eos_token_id": 7,
"ffn_te_autocast": false,
"ffn_use_quantized_params": false,
"hidden_size": 1024,
"initializer_range": 0.02,
"intermediate_size": 2560,
"layer_types": [
"conv",
"conv",
"full_attention",
"conv",
"full_attention",
"conv",
"full_attention",
"conv",
"full_attention",
"conv",
"full_attention",
"conv",
"full_attention",
"conv"
],
"max_position_embeddings": 128000,
"model_type": "lfm2",
"norm_eps": 1e-05,
"num_attention_heads": 16,
"num_heads": 16,
"num_hidden_layers": 14,
"num_key_value_heads": 8,
"pad_token_id": 0,
"rope_parameters": {
"rope_theta": 1000000.0,
"rope_type": "default"
},
"sequence_parallel_norm_across_tp": false,
"tie_embedding": true,
"tie_word_embeddings": true,
"transformers_version": "5.0.0",
"use_cache": false,
"use_pos_enc": true,
"vocab_size": 65536
}

7
generation_config.json Normal file
View File

@@ -0,0 +1,7 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 7,
"pad_token_id": 0,
"transformers_version": "5.0.0"
}

18
inference_config.json Normal file
View File

@@ -0,0 +1,18 @@
{
"decode": {
"beams": 1,
"candidate_policy": "current_whitespace_heal_v1",
"empty_heal_fallback": "no_heal_parse_valid",
"max_decode_steps": 8,
"newline_stop_id": 708,
"token_healing": true
},
"schema_version": "shellcue.inference.v1",
"tokenization": {
"cmd_max": 96,
"ctx_max": 128,
"healing": true,
"per_cmd_chars": 160,
"separator": "newline"
}
}

20
model.json Normal file
View File

@@ -0,0 +1,20 @@
{
"artifact_kind": "neural_causal_lm",
"file_hashes": {
"config.json": "df8f3ce731cd92b8a39c101ddb5a6c701a8c12ff1bf8c48f5c87d8c64e4e2387",
"generation_config.json": "e6a1ce8f16f9c3d6ac1f13bee18484f271a2566b5af238853c90fb9b2b5c5cda",
"model.safetensors": "c4f7973c48eb04fa2e8013f0d03171fcfb4ee27c157dea31e96020b12b84fb53",
"tokenizer.json": "df1d8d5ec5d091b460562ffd545e4a5e91d17d4a0db7ebe733be34ed374377bd",
"tokenizer_config.json": "75c287923e252b08b0a0f1c367bbe557ab23a681d0b71c5a34e0932ddbe2f5ee"
},
"input_fields": [
"context_text",
"typed_prefix_masked"
],
"runtime_min_version": "0.1.0a1",
"schema_version": "shellcue.model.v1",
"tokenizer_config_path": "tokenizer_config.json",
"tokenizer_path": "tokenizer.json",
"weights_format": "safetensors",
"weights_path": "model.safetensors"
}

3
model.safetensors Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c4f7973c48eb04fa2e8013f0d03171fcfb4ee27c157dea31e96020b12b84fb53
size 918787352

14
provenance.json Normal file
View File

@@ -0,0 +1,14 @@
{
"base_model": {
"id": "LiquidAI/LFM2.5-230M-Base",
"revision": "9d2be5519834990d30996f878b6771cccbd24f2c"
},
"derivation": {
"kind": "full_fine_tune",
"modified": true
},
"release": "v0.1.0a1",
"schema_version": "shellcue.provenance.v1",
"support_level": "development_alpha",
"weights_sha256": "c4f7973c48eb04fa2e8013f0d03171fcfb4ee27c157dea31e96020b12b84fb53"
}

6
redaction_summary.json Normal file
View File

@@ -0,0 +1,6 @@
{
"leak_count": 0,
"raw_history_included": false,
"schema_version": "shellcue.redaction.v1",
"scope": "release snapshot metadata"
}

12
schema.json Normal file
View File

@@ -0,0 +1,12 @@
{
"model_fields": [
"context_text",
"typed_prefix_masked"
],
"schema_version": "shellcue.input.v1",
"target_fields": [
"target_next_piece",
"target_suffix_masked",
"target_command_masked"
]
}

323830
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

19
tokenizer_config.json Normal file
View File

@@ -0,0 +1,19 @@
{
"backend": "tokenizers",
"bos_token": "<|startoftext|>",
"clean_up_tokenization_spaces": false,
"eos_token": "<|im_end|>",
"is_local": true,
"legacy": false,
"model_input_names": [
"input_ids",
"attention_mask"
],
"model_max_length": 1000000000000000019884624838656,
"pad_token": "<|pad|>",
"sp_model_kwargs": {},
"spaces_between_special_tokens": false,
"tokenizer_class": "TokenizersBackend",
"use_default_system_prompt": false,
"use_fast": true
}