/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Размер весов
16,5 ГБ
Лицензия
Apache 2.0
Архитектура
rwkv_hybrid · dense
Базовая модель
DeepSeek-R1-Distill-Qwen-7B
Библиотека
transformers
Опубликована
7 фев 2025

ARWKV-R1-7B

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

Экспериментальная гибридная RWKV-7/Transformer-модель на 7,1 млрд параметров для генерации диалогового текста и ответов с рассуждениями.

106скачиваний за 30 дней14лайковвеса обновлены11 мая 2025

Бенчмарки

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

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

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

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

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

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

ARWKV-R1-7B Preview 0.1 — экспериментальная языковая модель на 7,1 млрд параметров от RWKV-Red-Team. Она сочетает механизм временного смешивания RWKV-7 и MLP Transformer; авторы описывают её как рекуррентную модель без self-attention с вычислительной сложностью O(n) и постоянным расходом видеопамяти. Модель предназначена для генерации текста и диалогов, включая ответы на вопросы и рассуждения.

В README указано, что это ранняя базовая версия, обученная на этапе дистилляции без SFT и DPO. В нём говорится о контексте обучения в 2 тыс. токенов, тогда как метаданные каталога приводят нативное окно контекста 32 768 токенов. Модель основана на слиянии BlinkDL/rwkv-7-world и DeepSeek-R1-Distill-Qwen-7B по метаданным; README также описывает дистилляцию из DeepSeek-R1-Distill-Qwen-1.5B. Лицензия — Apache-2.0. Ранняя версия может выдавать многословные или ошибочные ответы; заявленные в README преимущества следует считать характеристиками авторского описания, а не независимой оценкой.

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

  • генерация ответов на вопросы
  • диалоговый помощник на английском или китайском
  • создание связного текста
  • эксперименты с рекуррентными языковыми моделями
  • исследование генерации с многошаговыми рассуждениями

Ограничения

Это ранняя preview-версия без SFT и DPO; ответы могут быть многословными и ошибочными. README указывает контекст обучения 2 тыс. токенов, тогда как метаданные каталога приводят нативный контекст 32 768 токенов.

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

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

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

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

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

Открыть на Hugging Face

ARWKV-R1-7B (Preview 0.1)

Preview version with RWKV-7 time mixing and Transformer MLP

📌 Overview

ALL YOU NEED IS RWKV

This is an early preview of our 7B parameter pure RNN-based model, trained on 2k context length (only stage-2 applied, without SFT or DPO) through 3-stage knowledge distillation from DeepSeek-R1-Distill-Qwen-1.5B. While being a foundational version, it demonstrates:

  • ✅ RWKV-7's efficient recurrence mechanism
  • ✅ No self-attention, fully O(n)
  • ✅ Constant VRAM usage
  • ✅ Single-GPU trainability

Roadmap Notice: We will soon open-source different enhanced versions with:

  • 🚀 16k+ context capability
  • 🧮 Math-specific improvements
  • 📚 RL enhanced reasoning model

Infrence on AMD Radeon GPU By Llama.cpp

git clone https://github.com/MollySophia/llama.cpp.git -b rwkv-v7
cd llama.cpp
HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
    cmake -S . -B build -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1030 -DCMAKE_BUILD_TYPE=Release \
    && cmake --build build --config Release -- -j 16
cd ./build/bin 

transform safetensor model to gguf

python ./convert_hf_to_gguf.py [model_dir]

model Quantization

./llama-quantize [model_dir] [Quantization accuracy]

Infrence model in Webui By llama-server

/llama-server -m [model_dir] -t [use_cpu_thread_number] -ngl 99 --host [host_number] --port [port_number]

Radeon 7000 series use gfx1100 & Radeon 6000 series use gfx1030

Infrence on Nvidia GPU By Llama.cpp

git clone https://github.com/MollySophia/llama.cpp.git -b rwkv-v7
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release
cd ./build/bin 

transform safetensor model to gguf

python ./convert_hf_to_gguf.py [model_dir]

model Quantization

./llama-quantize [model_dir] [Quantization_accuracy]

Infrence model in Webui By llama-server

/llama-server -m [model_dir] -t [use_cpu_thread_number] -ngl 99 --host [host_number] --port [port_number]

How to use

pip3 install --upgrade transformers rwkv-fla

Before training: export WKV_MODE=chunk

from transformers import AutoModelForCausalLM, AutoTokenizer


model = AutoModelForCausalLM.from_pretrained(
    "RWKV-Red-Team/ARWKV-R1-7B",
    device_map="auto",
    torch_dtype=torch.float16,
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    "RWKV-Red-Team/ARWKV-R1-7B"
)

system_prompt = "You are a world class trivia AI - provide accurate, succinct responses. "
messages = [
    {"role": "system", "content": system_prompt},
    {"role": "user", "content": prompt}]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
text = text + "<think>"
print(text)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

streamer = TextIteratorStreamer(tokenizer, skip_prompt=False, skip_special_tokens=False)


generation_kwargs = dict(model_inputs, streamer=streamer, max_new_tokens=8192, do_sample=True,tokenizer=tokenizer,stop_strings=["<|end▁of▁sentence|>"])
thread = threading.Thread(target=model.generate, kwargs=generation_kwargs)
thread.start()

print("Streaming output:")
for new_text in streamer:
    print(new_text, end="", flush=True)

thread.join()

The output looks like :

<|begin▁of▁sentence|>You are a world class trivia AI - provide accurate, succinct responses. <|User|>The world's largest rainforest, home to approximately three million species of plants and animals, is named after which river?<|Assistant|><think>
Okay, so I'm trying to solve this question about the world's largest rainforest and which river it's named after. Hmm, first, I think rainforest names often have links related to the region it's in. The most famous rainforest in the world is the Amazon. I remember hearing a lot about it being called that because rainforests are connected to specific river systems. 

Now, I'm trying to recall which river is named after the Amazon. I think it's the Amazon River. But I want to be sure. Let me see... the Amazon is a major rainforest located in South America. The Amazon River flows through it, which is why it's named after it. That makes sense because it's a very important river. I recall reading somewhere that all the rainforests are named after rivers related to their regions. So if the Amazon is named after its River, then the name would naturally be related to its source.

I wonder if it's the Amazon itself that's named after it, or another river named after it. But the official name for the Amazon is the Amazon Rainforest. The most significant rainforest in the world is the Amazon, and its name probably started with river-sounding names.
</think>

The largest rainforest located in South America is the Amazon. It is named after the river named after it, which is the Amazon River. Therefore, the Amazon River is the name given to the Amazon Rain Forest.

✈️ Benchmark

Qwen2.5-7B-InstructARWKV_7BARWKV_R1_7B
MMLU71.7262.4167.25 ↗️
GSM8K82.3439.9556.06 ↗️
WinoGrande71.3568.6751.93 ↘️
IfEval73.6252.1660.31 ↗️
Arc-c54.8652.2244.11 ↘️

🔑 Key Features

ComponentSpecificationNote
ArchitectureRWKV-7 TimeMix + SwiGLUHybrid design
Context Window2048 training CTXPreview limitation
Training Tokens40MDistillation-focused
PrecisionFP16 inference recommended(16G Vram required)15%↑ vs BF16

🏗️ Architecture Highlights

Core Modification Flow

Transformer Decoder Layer:
- Multi-head Latent Attention(MLA)
+ RWKV-7 Time Mixing (Eq.3)
- RoPE Positional Encoding
+ State Recurrence
= Hybrid Layer Output

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей