Run this model with HF Jobs
Run bofenghuang/vigogne-opt-6.7b-instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/bofenghuang/vigogne-opt-6.7b-instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bofenghuang/vigogne-opt-6.7b-instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/bofenghuang/vigogne-opt-6.7b-instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/bofenghuang/vigogne-opt-6.7b-instruct. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use bofenghuang/vigogne-opt-6.7b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bofenghuang/vigogne-opt-6.7b-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bofenghuang/vigogne-opt-6.7b-instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bofenghuang/vigogne-opt-6.7b-instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bofenghuang/vigogne-opt-6.7b-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bofenghuang/vigogne-opt-6.7b-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bofenghuang/vigogne-opt-6.7b-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bofenghuang/vigogne-opt-6.7b-instruct
- SGLang
How to use bofenghuang/vigogne-opt-6.7b-instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "bofenghuang/vigogne-opt-6.7b-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bofenghuang/vigogne-opt-6.7b-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "bofenghuang/vigogne-opt-6.7b-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bofenghuang/vigogne-opt-6.7b-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bofenghuang/vigogne-opt-6.7b-instruct with Docker Model Runner:
docker model run hf.co/bofenghuang/vigogne-opt-6.7b-instruct
Vigogne-LoRA-OPT-6.7B: A French Instruct LLaMA Model
Vigogne-LoRA-OPT-6.7B is a facebook/opt-6.7b model fine-tuned on the translated Stanford Alpaca dataset to follow the π«π· French instructions.
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 AutoModelForCausalLM, AutoTokenizer
tokenizer = LlamaTokenizer.from_pretrained("facebook/opt-6.7b")
model = LlamaForCausalLM.from_pretrained(
"facebook/opt-6.7b",
load_in_8bit=True,
device_map="auto",
)
model = PeftModel.from_pretrained(model, "bofenghuang/vigogne-lora-opt-6.7b")
You can infer this model by using the following Google Colab Notebook.
Bias, Risks, and 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.
Next Steps
- Add output examples