初始化项目,由ModelHub XC社区提供模型
Model: SBDO1/SBD4.5 Source: Original Platform
This commit is contained in:
commit
a31c77e1fe
4 files changed
+331
No files matched your search
@@ -0,0 +1,37 @@
|
||||
*.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
|
||||
SBD-4.5-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
SBD-4.5-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1,288 @@
|
||||
---
|
||||
license: apache-2.0
|
||||
language:
|
||||
- en
|
||||
tags:
|
||||
- conversational
|
||||
- chat
|
||||
- coding
|
||||
- code-generation
|
||||
- rust
|
||||
- text-generation
|
||||
- causal-lm
|
||||
datasets:
|
||||
- Convence/Rust-Coder
|
||||
---
|
||||
|
||||
# SBD4.5
|
||||
|
||||
**SBD4.5** is a **3 billion parameter language model** designed primarily for **coding assistance and general conversation**.
|
||||
|
||||
The model is intended to help with code generation, code explanation, debugging, technical questions, and natural-language chat.
|
||||
|
||||
SBD4.5 is an independently developed model and is not presented as a fine-tune of another released base model.
|
||||
|
||||
## Model Details
|
||||
|
||||
| Property | Value |
|
||||
|---|---|
|
||||
| Model | SBD4.5 |
|
||||
| Parameters | ~3B |
|
||||
| Architecture | Decoder-only / autoregressive language model |
|
||||
| Base model | None |
|
||||
| Primary purpose | Coding + Chat |
|
||||
| Primary language | English |
|
||||
| License | Apache License 2.0 |
|
||||
| Status | Experimental |
|
||||
| Tokenizer | BPE |
|
||||
| Training dataset | Convence/Rust-Coder |
|
||||
|
||||
## Training Data
|
||||
|
||||
SBD4.5 uses data from:
|
||||
|
||||
**Convence/Rust-Coder**
|
||||
|
||||
https://huggingface.co/datasets/Convence/Rust-Coder
|
||||
|
||||
The dataset provides programming-oriented training data with a particular emphasis on **Rust and software-development tasks**.
|
||||
|
||||
Additional datasets or training sources should be documented here if they are used in future versions of SBD4.5.
|
||||
|
||||
## Tokenizer
|
||||
|
||||
SBD4.5 uses a **Byte-Pair Encoding (BPE)** tokenizer.
|
||||
|
||||
The tokenizer includes tokens intended for conversational formatting, including:
|
||||
|
||||
```text
|
||||
<|im_start|>
|
||||
<|im_end|>
|
||||
<|endoftext|>
|
||||
```
|
||||
|
||||
It also includes Fill-in-the-Middle tokens useful for coding workflows:
|
||||
|
||||
```text
|
||||
<|fim_prefix|>
|
||||
<|fim_middle|>
|
||||
<|fim_suffix|>
|
||||
<|fim_pad|>
|
||||
```
|
||||
|
||||
This allows the tokenizer to represent both normal conversational text and code-oriented completion patterns.
|
||||
|
||||
## Intended Uses
|
||||
|
||||
SBD4.5 is designed for:
|
||||
|
||||
- General conversation
|
||||
- Programming assistance
|
||||
- Code generation
|
||||
- Code completion
|
||||
- Code explanation
|
||||
- Debugging assistance
|
||||
- Rust programming
|
||||
- Software-development questions
|
||||
- Technical explanations
|
||||
- Refactoring suggestions
|
||||
- Generating scripts and utilities
|
||||
- Explaining errors and stack traces
|
||||
- Fill-in-the-Middle code completion
|
||||
|
||||
## Coding Capabilities
|
||||
|
||||
SBD4.5 is primarily intended as a coding-oriented model.
|
||||
|
||||
Its training data places particular emphasis on **Rust**, although the tokenizer and model may support other programming languages depending on the model's broader training data.
|
||||
|
||||
Potential use cases include:
|
||||
|
||||
```rust
|
||||
fn main() {
|
||||
println!("Hello from SBD4.5!");
|
||||
}
|
||||
```
|
||||
|
||||
as well as explaining, debugging, or modifying existing programs.
|
||||
|
||||
## Example
|
||||
|
||||
### User
|
||||
|
||||
```text
|
||||
Write a Rust function that determines whether a number is prime.
|
||||
```
|
||||
|
||||
### Assistant
|
||||
|
||||
```rust
|
||||
fn is_prime(n: u64) -> bool {
|
||||
if n < 2 {
|
||||
return false;
|
||||
}
|
||||
|
||||
let limit = (n as f64).sqrt() as u64;
|
||||
|
||||
for i in 2..=limit {
|
||||
if n % i == 0 {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
true
|
||||
}
|
||||
```
|
||||
|
||||
## Chat Usage
|
||||
|
||||
SBD4.5 can also be used as a conversational assistant.
|
||||
|
||||
Example:
|
||||
|
||||
```text
|
||||
User: What is ownership in Rust?
|
||||
|
||||
Assistant: Ownership is Rust's system for managing memory without requiring
|
||||
a garbage collector. Every value has an owner, and when that owner goes out
|
||||
of scope, the value is automatically dropped.
|
||||
```
|
||||
|
||||
## Strengths
|
||||
|
||||
SBD4.5 is intended to perform well on tasks involving:
|
||||
|
||||
- Programming
|
||||
- Rust code
|
||||
- Code completion
|
||||
- Code explanation
|
||||
- Technical Q&A
|
||||
- Debugging
|
||||
- Conversational assistance
|
||||
- Software-development workflows
|
||||
|
||||
## Limitations
|
||||
|
||||
SBD4.5 can generate incorrect or misleading output.
|
||||
|
||||
In particular, the model may:
|
||||
|
||||
- Generate code that does not compile.
|
||||
- Produce logical bugs.
|
||||
- Suggest insecure implementations.
|
||||
- Hallucinate libraries, APIs, functions, or configuration options.
|
||||
- Misunderstand complex requirements.
|
||||
- Generate outdated technical information.
|
||||
- Produce confident answers that are incorrect.
|
||||
- Perform unevenly across programming languages.
|
||||
|
||||
All generated code should be reviewed and tested before being used in production.
|
||||
|
||||
Security-sensitive code should receive additional manual review.
|
||||
|
||||
## Safety
|
||||
|
||||
SBD4.5 is an experimental language model.
|
||||
|
||||
Generated responses should not automatically be treated as factual or safe to execute.
|
||||
|
||||
Users should carefully inspect generated commands and programs, particularly when they involve:
|
||||
|
||||
- File deletion
|
||||
- System administration
|
||||
- Network access
|
||||
- Authentication
|
||||
- Credentials
|
||||
- Databases
|
||||
- Production infrastructure
|
||||
- Security-sensitive applications
|
||||
|
||||
## Training
|
||||
|
||||
### Model Size
|
||||
|
||||
SBD4.5 contains approximately:
|
||||
|
||||
**3 billion parameters**
|
||||
|
||||
### Training Dataset
|
||||
|
||||
Primary documented dataset:
|
||||
|
||||
**Convence/Rust-Coder**
|
||||
|
||||
Dataset page:
|
||||
|
||||
https://huggingface.co/datasets/Convence/Rust-Coder
|
||||
|
||||
### Training Method
|
||||
|
||||
SBD4.5 is trained as an independent model rather than being distributed as a fine-tuned checkpoint of another base model.
|
||||
|
||||
Additional information about:
|
||||
|
||||
- Optimizer
|
||||
- Learning rate
|
||||
- Batch size
|
||||
- Sequence length
|
||||
- Number of training tokens
|
||||
- Hardware
|
||||
- Training duration
|
||||
- Training framework
|
||||
|
||||
can be added once those details are finalized.
|
||||
|
||||
## Evaluation
|
||||
|
||||
Formal benchmark results are not currently published.
|
||||
|
||||
Future evaluations may include:
|
||||
|
||||
### Coding
|
||||
|
||||
- HumanEval
|
||||
- HumanEval+
|
||||
- MBPP
|
||||
- MultiPL-E
|
||||
- Rust-specific coding benchmarks
|
||||
|
||||
### General Ability
|
||||
|
||||
- Instruction following
|
||||
- Reasoning
|
||||
- General knowledge
|
||||
- Conversational quality
|
||||
|
||||
### Reliability
|
||||
|
||||
- Compilation success rate
|
||||
- Unit-test pass rate
|
||||
- Hallucination rate
|
||||
- Security evaluation
|
||||
|
||||
Benchmark results should be reported here when available rather than inferred from parameter count or training data.
|
||||
|
||||
## License
|
||||
|
||||
SBD4.5 is released under the **Apache License 2.0**.
|
||||
|
||||
Users should also review the licenses and terms associated with any datasets used during training.
|
||||
|
||||
## Version
|
||||
|
||||
### SBD4.5
|
||||
|
||||
- Approximately 3B parameters
|
||||
- Coding + conversational model
|
||||
- Rust-oriented training data
|
||||
- BPE tokenizer
|
||||
- Fill-in-the-Middle token support
|
||||
- Apache-2.0 license
|
||||
|
||||
## Disclaimer
|
||||
|
||||
SBD4.5 is an experimental AI model.
|
||||
|
||||
Generated information and code may be inaccurate, unsafe, incomplete, or inappropriate for a particular application.
|
||||
|
||||
Always review and test important outputs before relying on them.
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:756c500acdd0626ee9d510113496218586501a15d0a29f315377f3f89b08a763
|
||||
size 3285475904
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a401a967766ff3643dc4dfe0290547b332fb5aba0bd94ca4c2b3656c0bd25ef5
|
||||
size 1929902656
|
||||
Reference in new issue
Block a user