Instructions to use ai2sql/ai2sql_mistral_7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ai2sql/ai2sql_mistral_7b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1") model = PeftModel.from_pretrained(base_model, "ai2sql/ai2sql_mistral_7b") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from ai2sql/ai2sql_mistral_7b: direct link, hf CLI and curl.
- Browser
- Download file 1.8 MB
-
https://huggingface.co/ai2sql/ai2sql_mistral_7b/resolve/618681f2bb64dbaddaa47be296fc2009c5da0aed/tokenizer.json
- Command line
-
hf download hf://ai2sql/ai2sql_mistral_7b@618681f2bb64dbaddaa47be296fc2009c5da0aed/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/ai2sql/ai2sql_mistral_7b/resolve/618681f2bb64dbaddaa47be296fc2009c5da0aed/tokenizer.json
1.8 MB
File too large to display, you can check the raw version instead.