288 lines
6.0 KiB
Markdown
288 lines
6.0 KiB
Markdown
---
|
|
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. |