Vikhrmodels / Vikhr-7B-instruct_0.4

huggingface.co
Total runs: 102
24-hour runs: 0
7-day runs: -29
30-day runs: -25
Model's Last Updated: May 24 2024
text-generation

Introduction of Vikhr-7B-instruct_0.4

Model Details of Vikhr-7B-instruct_0.4

Релиз вихря 0.3-0.4

Долили сильно больше данных в sft, теперь стабильнее работает json и multiturn, слегка подточили параметры претрена модели

Added a lot more data to sft, now json and multiturn work more stable on long context and hard prompts



from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model = AutoModelForCausalLM.from_pretrained("Vikhrmodels/Vikhr-7B-instruct_0.4",
                                             device_map="auto",
                                             attn_implementation="flash_attention_2",
                                             torch_dtype=torch.bfloat16)

tokenizer = AutoTokenizer.from_pretrained("Vikhrmodels/Vikhr-7B-instruct_0.4")
from transformers import  AutoTokenizer, pipeline
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
prompts = [
    "В чем разница между фруктом и овощем?",
    "Годы жизни колмагорова?"]

def test_inference(prompt):
    prompt = pipe.tokenizer.apply_chat_template([{"role": "user", "content": prompt}], tokenize=False, add_generation_prompt=True)
    print(prompt)
    outputs = pipe(prompt, max_new_tokens=512, do_sample=True, num_beams=1, temperature=0.25, top_k=50, top_p=0.98, eos_token_id=79097)
    return outputs[0]['generated_text'][len(prompt):].strip()


for prompt in prompts:
    print(f"    prompt:\n{prompt}")
    print(f"    response:\n{test_inference(prompt)}")
    print("-"*50)
@article{nikolich2024vikhr,
  title={Vikhr: The Family of Open-Source Instruction-Tuned Large Language Models for Russian},
  author={Aleksandr Nikolich and Konstantin Korolev and Artem Shelmanov},
  journal={arXiv preprint arXiv:2405.13929},
  year={2024},
  url={https://arxiv.org/pdf/2405.13929}
}

Runs of Vikhrmodels Vikhr-7B-instruct_0.4 on huggingface.co

102
Total runs
0
24-hour runs
-28
3-day runs
-29
7-day runs
-25
30-day runs

More Information About Vikhr-7B-instruct_0.4 huggingface.co Model

Vikhr-7B-instruct_0.4 huggingface.co

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

Vikhr-7B-instruct_0.4 huggingface.co Url

https://huggingface.co/Vikhrmodels/Vikhr-7B-instruct_0.4

Vikhrmodels Vikhr-7B-instruct_0.4 online free

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

Vikhrmodels Vikhr-7B-instruct_0.4 online free url in huggingface.co:

https://huggingface.co/Vikhrmodels/Vikhr-7B-instruct_0.4

Vikhr-7B-instruct_0.4 install

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

Vikhr-7B-instruct_0.4 install url in huggingface.co:

https://huggingface.co/Vikhrmodels/Vikhr-7B-instruct_0.4

Url of Vikhr-7B-instruct_0.4

Vikhr-7B-instruct_0.4 huggingface.co Url

Provider of Vikhr-7B-instruct_0.4 huggingface.co

Vikhrmodels
ORGANIZATIONS

Other API from Vikhrmodels

huggingface.co

Total runs: 978
Run Growth: -75.4K
Growth Rate: -7710.63%
Updated:September 18 2025
huggingface.co

Total runs: 12
Run Growth: 6
Growth Rate: 50.00%
Updated:January 30 2025
huggingface.co

Total runs: 9
Run Growth: 4
Growth Rate: 44.44%
Updated:June 11 2025