Create and activate a Python virtual environment
From the directory where you will run the model, create an isolated Python environment so the pinned packages do not disturb your system Python.
python3 -m venv .venv
source .venv/bin/activateLoad the AliceAI Foundation 80B A3B Base weights in Transformers, run the documented generation script on a short Russian prompt, and read the generated continuation to verify the model responds.
Load the AliceAI Foundation 80B A3B Base weights in Transformers, run the documented generation script on a short Russian prompt, and read the generated continuation to verify the model responds.
This setup uses the package documented for this task. Review its source and supported platforms before starting.
The publisher has not provided a complete memory target for this task. Check its hardware guidance before starting.
This setup uses Transformers. The exact checkpoint format, context, and runtime overhead determine its memory need; a weight-file size alone is not a GPU recommendation.
Pick your operating system. Every command below is for the selected package and runtime.
The publisher supplies Python code but does not specify an operating system. Linux is a practical starting environment, not a publisher-tested machine. Run the Python snippets in one session, in order.
From the directory where you will run the model, create an isolated Python environment so the pinned packages do not disturb your system Python.
python3 -m venv .venv
source .venv/bin/activateInstall the reference Transformers version, Accelerate, and the flash-linear-attention package required to execute the KDA layers on GPU. The version pins come from the publisher's guide.
pip install \
transformers[sentencepiece]==5.16.1 \
accelerate==1.14.0 \
flash-linear-attention==0.5.0The model loads in bfloat16 and is placed with device_map="auto", so PyTorch must see your GPU(s) before you proceed. Ensure a CUDA-enabled PyTorch build is installed in this environment.
Save the following as a Python file and run it. The tokenizer is loaded with trust_remote_code=True, the model is loaded in bfloat16 and sharded automatically across available devices, and the Russian prompt from the publisher's example is passed through generate. The script then decodes only the newly generated tokens, so the printed text is the model's continuation.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "yandex/AliceAI-Foundation-80B-A3B-Base"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
dtype=torch.bfloat16,
device_map="auto",
)
prompt = "Есть 256 монет с разным весом, за какое минимальное количество попарных взвешиваний можно найти вторую по весу монету?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output_ids = model.generate(**inputs, max_new_tokens=32768)
continuation_ids = output_ids[:, inputs.input_ids.shape[1] :]
print(tokenizer.decode(continuation_ids[0], skip_special_tokens=True))Run the script with `python your_script.py`. In the terminal you should see a non-empty Russian continuation after the coin-weighing prompt — typically a line of reasoning followed by a numeric answer. If the printed continuation is empty, contains only the prompt echoed back, or the process crashes before printing, revisit the previous steps and the troubleshooting notes below.
Give the base model a short prompt and inspect the generated continuation. A base checkpoint is not assumed to follow chat instructions.
This is a source-linked setup, not a YouRunAI hardware test. Confirm your exact runtime version, package, and output before relying on it.
Reinstall the pinned packages from the activation of the same virtual environment, ensuring `flash-linear-attention==0.5.0` is present and importable.
Use the same generation script but keep device_map="auto" so the model is sharded across all visible GPUs; ensure no other large process is occupying the GPUs.
Confirm you are decoding only the continuation slice `output_ids[:, inputs.input_ids.shape[1] :]` and that max_new_tokens is set to 32768 as in the documented script.
Activate the virtual environment created in the first step (`source .venv/bin/activate`) and rerun the documented pip install command.
Original instructions, model files, and compatibility notes behind this setup.
Save your machine to see a personalized rating and its reasoning.
Add my hardwareInstall a local runtime, run Qwen3.5 9B, confirm responses, and know when to choose the smaller 4B package.
Connect an open coding-capable model in Ollama to Cline, run a small repository task, and review the result locally.
Use the official FLUX.2 Klein 4B ComfyUI template with exact model files, a first prompt, and an output check.