/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
18,8 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-9B
Библиотека
transformers
Опубликована
23 мая 2026

Aroow-Rust-Coder-9B

Генерация текстаТекст → текст3 профессии

Дообученная на Rust модель для генерации, дополнения, объяснения и редактирования кода, включая подготовку тестов.

59скачиваний за 30 дней11лайковвеса обновлены23 мая 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Aroow-Rust-Coder-9B — специализированная модель для помощи в программировании на Rust, разработанная Convence на основе дообучения Qwen/Qwen3.5-9B. Она предназначена для генерации и дополнения кода, редактирования по схеме fill-in-the-middle, объяснения фрагментов и подготовки модульных тестов в редакторах, ноутбуках и сценариях локального или агентного запуска.

Модель работает с функциями, структурами, перечислениями, трейtами, модулями и типичными конструкциями Rust, включая владение и заимствование, обработку ошибок через Result и Option, а также стандартную библиотеку. Репозиторий содержит веса в формате safetensors и рассчитан на использование через Transformers. Лицензия — Apache 2.0.

README рекомендует проверять сгенерированный код компилятором, тестами, форматированием и ревью. Как и другие генеративные модели кода, она может предлагать ошибочные или небезопасные решения; заявленная специализация на Rust не подтверждает качество для других языков и задач.

Сценарии применения

  • генерация функций и модулей Rust по требованиям
  • автодополнение незавершённого кода Rust
  • заполнение пропусков в коде между префиксом и суффиксом
  • создание модульных тестов Rust
  • объяснение фрагментов Rust и ошибок компилятора
  • рефакторинг кода Rust с использованием идиоматичных конструкций

Ограничения

Сгенерированный код нужно проверять компилятором, тестами, форматированием и ревью. В README не приведены количественные оценки качества модели.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Aroow-Rust-Coder-9B

Aroow-Rust-Coder-9B is a Rust-focused coding model by Convence, finetuned off Qwen/Qwen3.5-9B. It is designed for Rust code generation, code completion, source understanding, fill-in-the-middle editing, unit-test drafting, and practical programming assistance.

The model is intended for developers who want a Rust-specialized assistant that can work with function signatures, module snippets, tests, compiler errors, and implementation requirements. It should be used as part of a normal Rust development workflow with compiler checks, tests, formatting, and review.

Model Summary

PropertyValue
Model NameAroow-Rust-Coder-9B
Base ModelQwen/Qwen3.5-9B
Primary TaskRust code generation and completion
Output FocusRust source code, tests, explanations, refactors
LicenseApache 2.0

Intended Use

Aroow-Rust-Coder-9B is intended for Rust programming assistance in editor, notebook, local inference, and agent-style coding workflows.

Suitable use cases include:

  • generating Rust functions from requirements
  • completing partial Rust files
  • writing unit tests
  • explaining Rust code
  • rewriting snippets into more idiomatic Rust
  • assisting with ownership, borrowing, and trait-related issues
  • creating examples for APIs, structs, enums, traits, and modules
  • filling missing code between existing prefix and suffix context

The model is most useful when prompts include concrete constraints, function signatures, examples, or expected behavior.

Core Capabilities

  • Rust Code Generation - Produces functions, structs, enums, traits, impl blocks, modules, and tests.
  • Code Completion - Continues partial Rust code with awareness of surrounding context.
  • Fill-in-the-Middle Editing - Completes missing code between prefix and suffix blocks.
  • Unit-Test Drafting - Generates #[test] functions and #[cfg(test)] modules.
  • Code Explanation - Explains Rust snippets, control flow, type behavior, and common compiler issues.
  • Refactoring Assistance - Suggests cleaner structure, safer patterns, and more idiomatic Rust.
  • Error-Handling Patterns - Supports Result, Option, ?, pattern matching, and recoverable error flow.
  • Standard Library Usage - Works with common collections, iterators, slices, strings, traits, and modules.

Getting Started

Install the required packages:

pip install -U transformers peft torch accelerate

Load the base model and adapter:

import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoProcessor

BASE_MODEL = "Qwen/Qwen3.5-9B"
ADAPTER_ID = "Convence/Aroow-Rust-Coder-9B"

processor = AutoProcessor.from_pretrained(BASE_MODEL, trust_remote_code=True)
tokenizer = processor.tokenizer

model = AutoModelForImageTextToText.from_pretrained(
    BASE_MODEL,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)

model = PeftModel.from_pretrained(model, ADAPTER_ID)
model.eval()

Generate a Rust answer:

messages = [
    {
        "role": "system",
        "content": [
            {
                "type": "text",
                "text": "You are Aroow-Rust-Coder-9B, a Rust-focused coding assistant made by Convence. Write clear, safe, idiomatic Rust.",
            }
        ],
    },
    {
        "role": "user",
        "content": [
            {
                "type": "text",
                "text": "Write a Rust function that returns the first duplicate integer in a slice, or None if there is no duplicate. Include unit tests.",
            }
        ],
    },
]

prompt = processor.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
input_len = inputs["input_ids"].shape[-1]

outputs = model.generate(
    **inputs,
    max_new_tokens=512,
    do_sample=True,
    temperature=0.2,
    top_p=0.95,
)

response = tokenizer.decode(outputs[0][input_len:], skip_special_tokens=True)
print(response)

Prompt Examples

Function Implementation

Write a Rust function:

fn normalize_counts(values: &[u32]) -> Vec<f64>

Requirements:
* return an empty vector for empty input
* divide each value by the total sum
* avoid division by zero
* include unit tests

Compiler Error Help

This Rust code does not compile. Explain the issue and rewrite it idiomatically:

```rust
fn main() {
    let values = vec![String::from("alpha"), String::from("beta")];
    let first = values[0];
    println!("{:?}", values);
    println!("{}", first);
}
```

Fill-in-the-Middle Completion

Fill in the missing Rust code between this prefix and suffix. Return only the missing code.

Prefix:
```rust
impl Cache {
    pub fn get_or_insert_with<F>(&mut self, key: String, f: F) -> &Value
    where
        F: FnOnce() -> Value,
    {
```

Suffix:
```rust
    }
}
```

Recommended Usage

For best results:

  • provide exact function signatures when possible
  • include edge cases and expected behavior
  • state whether external crates are allowed
  • ask for tests when correctness matters
  • run generated code through cargo check
  • run tests with cargo test
  • format generated code with cargo fmt
  • inspect suggestions before applying them to production code

For deterministic code generation, use a low temperature such as 0.1 to 0.3. For brainstorming alternative designs, use a higher temperature with careful review.

Validation Workflow

Generated code should be treated as a draft. A recommended Rust validation workflow is:

cargo fmt
cargo check
cargo test
cargo clippy

For security-sensitive code, add manual review, dependency review, fuzzing, property tests, and threat modeling where appropriate.

Limitations

Aroow-Rust-Coder-9B may:

  • produce code that does not compile
  • comit imports, feature flags, or crate dependencies
  • misunderstand complex lifetimes or trait bounds
  • generate tests that do not cover important edge cases
  • hallucinate APIs or crate behavior
  • produce code that appears correct but fails under real inputs
  • give incomplete explanations of compiler errors

The model should not be used as the sole authority for security-critical, safety-critical, medical, legal, financial, cryptographic, or infrastructure-critical code.

Safety

Developers should avoid sending secrets, credentials, private keys, unreleased proprietary source code, personal data, or regulated information to public inference endpoints.

Generated code should be reviewed before use. Pay special attention to:

  • unsafe blocks
  • FFI
  • raw pointers
  • authentication logic
  • cryptography
  • file-system access
  • network-facing code
  • dependency and supply-chain risk

Citation

@misc{convence2026aroowrustcoder9b,
  title={Aroow-Rust-Coder-9B},
  author={Convence},
  year={2026},
  url={https://huggingface.co/Convence/Aroow-Rust-Coder-9B}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
fdc7d59

0 моделей