ai-forever / charllama-2.6B

huggingface.co
Total runs: 93
24-hour runs: 1
7-day runs: -1
30-day runs: 30
Model's Last Updated: March 12 2025

Introduction of charllama-2.6B

Model Details of charllama-2.6B

CharLLama-2.6B Pretrained Language Model

This repository contains a pre-trained language model based on the Llama architecture, utilizing character-level tokenization. The model was developed for experiments in generating Russian-language accentual-syllabic poetry, as described in our paper: "Generation of Russian Poetry of Different Genres and Styles Using Neural Networks with Character-Level Tokenization" . Note that for practical applications, fine-tuning on a specific dataset is recommended.

Model Specifications
  • Number of parameters : 2,641,199,664
Pretraining Data

The model was pretrained on a mixed dataset of approximately 100GB of Russian and English texts, with a focus on Russian-language content. The dataset includes diverse domains such as fiction and poetry across various genres and styles. All texts were accentuated.

Character-Level Tokenization

The model employs character-by-character tokenization. To use the tokenizer, install it via:

pip install git+https://github.com/Koziev/character-tokenizer

The tokenizer includes special tokens <s> and </s> .

Usage

To use the model with the transformers library, follow this example:

import torch
import transformers
import charactertokenizer

generation_args = {'max_length': 1024,
                   'num_return_sequences': 1,
                   'do_sample': True,
                   'no_repeat_ngram_size': 10,
                   'temperature': 0.8,
                   'top_p': 0.6,
                   'top_k': 0,
                   }

device = "cuda:0"

model_dir = 'ai-forever/charllama-2.6B'

tokenizer = charactertokenizer.CharacterTokenizer.from_pretrained(model_dir)

model = transformers.AutoModelForCausalLM.from_pretrained(model_dir)
model.to(device)

# Poetry completion
prompt = chr(8) + 'У бу́рных чу́вств неи́стовый коне́ц'

input_ids = tokenizer(prompt, return_tensors='pt').input_ids
out_ids = model.generate(input_ids=input_ids.to(device),
                         eos_token_id=tokenizer.eos_token_id,
                         **generation_args).tolist()

prompt_len = len(input_ids[0])
for seq in out_ids:
    seq = seq[1:]

    output = tokenizer.decode(seq)

    if '</s>' in output:
        output = output[:output.find('</s>')].strip()

    text = output
    print('-'*80)
    print(text)

Example output (may vary):

У бу́рных чу́вств неи́стовый коне́ц,
И в э́том не́т ни ка́пельки сомне́нья.
Прихо́дит сро́к, и го́рестный вене́ц
Наде́нет на себя́ душа́ смире́нно.

И не помо́гут в э́том Небеса́,
И не поми́лует Судьба́ - подру́га.
И бу́дет на душе́ твое́й тоска́,
И ста́нет в жи́зни нестерпи́мо ту́го.
Limitation

The model may generate inappropriate content, including hate speech, offensive language, or biased outputs reflecting the training data. Use with caution and consider post-processing or filtering mechanisms.

Citation

If you use this model in your research, please cite it as follows (citation details will be available soon):

citation information will be available soon

Runs of ai-forever charllama-2.6B on huggingface.co

93
Total runs
1
24-hour runs
3
3-day runs
-1
7-day runs
30
30-day runs

More Information About charllama-2.6B huggingface.co Model

More charllama-2.6B license Visit here:

https://choosealicense.com/licenses/mit

charllama-2.6B huggingface.co

charllama-2.6B huggingface.co is an AI model on huggingface.co that provides charllama-2.6B's model effect (), which can be used instantly with this ai-forever charllama-2.6B model. huggingface.co supports a free trial of the charllama-2.6B model, and also provides paid use of the charllama-2.6B. Support call charllama-2.6B model through api, including Node.js, Python, http.

ai-forever charllama-2.6B online free

charllama-2.6B huggingface.co is an online trial and call api platform, which integrates charllama-2.6B's modeling effects, including api services, and provides a free online trial of charllama-2.6B, you can try charllama-2.6B online for free by clicking the link below.

ai-forever charllama-2.6B online free url in huggingface.co:

https://huggingface.co/ai-forever/charllama-2.6B

charllama-2.6B install

charllama-2.6B is an open source model from GitHub that offers a free installation service, and any user can find charllama-2.6B on GitHub to install. At the same time, huggingface.co provides the effect of charllama-2.6B install, users can directly use charllama-2.6B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

charllama-2.6B install url in huggingface.co:

https://huggingface.co/ai-forever/charllama-2.6B

Url of charllama-2.6B

charllama-2.6B huggingface.co Url

Provider of charllama-2.6B huggingface.co

ai-forever
ORGANIZATIONS

Other API from ai-forever

huggingface.co

Total runs: 130.1K
Run Growth: 6.8K
Growth Rate: 6.14%
Updated:August 12 2026
huggingface.co

Total runs: 3.9K
Run Growth: 2.0K
Growth Rate: 52.49%
Updated:December 12 2023
huggingface.co

Total runs: 3.3K
Run Growth: -8.8K
Growth Rate: -228.77%
Updated:December 05 2023
huggingface.co

Total runs: 1.3K
Run Growth: 560
Growth Rate: 42.26%
Updated:December 28 2023
huggingface.co

Total runs: 861
Run Growth: 651
Growth Rate: 75.61%
Updated:January 26 2023
huggingface.co

Total runs: 784
Run Growth: 346
Growth Rate: 43.74%
Updated:December 05 2023
huggingface.co

Total runs: 398
Run Growth: 390
Growth Rate: 99.24%
Updated:September 18 2026
huggingface.co

Total runs: 336
Run Growth: 328
Growth Rate: 99.39%
Updated:September 18 2026
huggingface.co

Total runs: 333
Run Growth: 328
Growth Rate: 100.00%
Updated:September 18 2026
huggingface.co

Total runs: 159
Run Growth: 154
Growth Rate: 100.00%
Updated:September 17 2026