license: openrail
language:
- fr
pipeline_tag: text-generation
library_name: transformers
tags:
- llama
- LLM
datasets:
- tatsu-lab/alpaca
inference: false
Vigogne-Chat-7B: A French Chat LLaMA Model
Vigogne-Chat-7B is a LLaMA-7B model fine-tuned to conduct multi-turn dialogues in 🇫🇷 French between human user and AI assistant.
For more information, please visit the Github repo: https://github.com/bofenghuang/vigogne
Usage and License Notices: Same as Stanford Alpaca, Vigogne is intended and licensed for research use only. The dataset is CC BY NC 4.0 (allowing only non-commercial use) and models trained using the dataset should not be used outside of research purposes.
Usage
This repo only contains the low-rank adapter. In order to access the complete model, you also need to load the base LLM model and tokenizer.
from peft import PeftModel
from transformers import LlamaForCausalLM, LlamaTokenizer
base_model_name_or_path = "name/or/path/to/hf/llama/7b/model"
lora_model_name_or_path = "bofenghuang/vigogne-chat-7b"
tokenizer = LlamaTokenizer.from_pretrained(base_model_name_or_path, padding_side="right", use_fast=False))
model = LlamaForCausalLM.from_pretrained(
base_model_name_or_path,
load_in_8bit=True,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, lora_model_name_or_path)
Limitations
Vigogne is still under development, and there are many limitations that have to be addressed. Please note that it is possible that the model generates harmful or biased content, incorrect information or generally unhelpful answers.