allenai / open-instruct-stanford-alpaca-7b

huggingface.co
Total runs: 194
24-hour runs: 0
7-day runs: 20
30-day runs: 22
Model's Last Updated: 2023年6月20日
text-generation

Introduction of open-instruct-stanford-alpaca-7b

Model Details of open-instruct-stanford-alpaca-7b

Open-Instruct Stanford Alpaca 7B

This model is a 7B LLaMa model finetuned on the Stanford Alpaca dataset. Please note this is a model diff - see below for usage instructions .

This was trained as part of the paper How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources . The codebase used to train and evaluate this model can be found at https://github.com/allenai/open-instruct .

This model is licensed under the AI model license given in LICENSE.txt along with the original Llama license (llama_license.txt).

Usage

We assume you have access to a LLaMa model in HF format already. You can find details on getting access and converting the model here: https://huggingface.co/docs/transformers/main/model_doc/llama

Clone https://github.com/allenai/open-instruct and install the required dependencies, or just copy scripts/weight_diff.py and install the minimal requirements listed in weight-diff-requirements.txt . Then download or clone this model diff to the same machine.

Then, run:

python scripts/weight_diff.py recover --path_raw ${hf_llama_path} --path_tuned ${output_path} --path_diff ${diff_location}

And you will have a recovered model! Note this takes up a decent amount of RAM, especially for the larger models.

Input Format

The model is trained to use the following format (note the newlines):

<|user|>
Your message here!
<|assistant|>

For best results, format all inputs in this manner.

Performance

Here is the performance of this model across benchmarks explored in our paper How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources :

MMLU 0-shot MMLU 5-shot GSM Direct GSM CoT BBH Direct BBH CoT TydiQA Gold-Passage TydiQA Closed-book Codex-Eval Pass@1 Codex-Eval Pass@10 AlpacaFarm vs Davinci-003 Average
41.5 40.3 7.0 10.0 32.6 31.8 31.2 7.2 13.2 22.0 21.1 23.3

If you use this model, please cite our work, the llama paper, and the original dataset:

@misc{wang2023far,
      title={How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resources}, 
      author={Yizhong Wang and Hamish Ivison and Pradeep Dasigi and Jack Hessel and Tushar Khot and Khyathi Raghavi Chandu and David Wadden and Kelsey MacMillan and Noah A. Smith and Iz Beltagy and Hannaneh Hajishirzi},
      year={2023},
      eprint={2306.04751},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
@misc{touvron2023llama,
      title={LLaMA: Open and Efficient Foundation Language Models}, 
      author={Hugo Touvron and Thibaut Lavril and Gautier Izacard and Xavier Martinet and Marie-Anne Lachaux and Timothée Lacroix and Baptiste Rozière and Naman Goyal and Eric Hambro and Faisal Azhar and Aurelien Rodriguez and Armand Joulin and Edouard Grave and Guillaume Lample},
      year={2023},
      eprint={2302.13971},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
@misc{alpaca,
  author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto },
  title = {Stanford Alpaca: An Instruction-following LLaMA model},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},
}

Runs of allenai open-instruct-stanford-alpaca-7b on huggingface.co

194
Total runs
0
24-hour runs
6
3-day runs
20
7-day runs
22
30-day runs

More Information About open-instruct-stanford-alpaca-7b huggingface.co Model

open-instruct-stanford-alpaca-7b huggingface.co

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

open-instruct-stanford-alpaca-7b huggingface.co Url

https://huggingface.co/allenai/open-instruct-stanford-alpaca-7b

allenai open-instruct-stanford-alpaca-7b online free

open-instruct-stanford-alpaca-7b huggingface.co is an online trial and call api platform, which integrates open-instruct-stanford-alpaca-7b's modeling effects, including api services, and provides a free online trial of open-instruct-stanford-alpaca-7b, you can try open-instruct-stanford-alpaca-7b online for free by clicking the link below.

allenai open-instruct-stanford-alpaca-7b online free url in huggingface.co:

https://huggingface.co/allenai/open-instruct-stanford-alpaca-7b

open-instruct-stanford-alpaca-7b install

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

open-instruct-stanford-alpaca-7b install url in huggingface.co:

https://huggingface.co/allenai/open-instruct-stanford-alpaca-7b

Url of open-instruct-stanford-alpaca-7b

open-instruct-stanford-alpaca-7b huggingface.co Url

Provider of open-instruct-stanford-alpaca-7b huggingface.co

allenai
ORGANIZATIONS

Other API from allenai

huggingface.co

Total runs: 91.7K
Run Growth: 78.6K
Growth Rate: 85.70%
Updated: 2023年10月18日
huggingface.co

Total runs: 91.3K
Run Growth: 63.3K
Growth Rate: 69.57%
Updated: 2025年1月6日
huggingface.co

Total runs: 77.3K
Run Growth: -517.1K
Growth Rate: -669.13%
Updated: 2024年10月10日
huggingface.co

Total runs: 63.3K
Run Growth: 51.7K
Growth Rate: 81.63%
Updated: 2024年10月10日
huggingface.co

Total runs: 61.6K
Run Growth: -50.5K
Growth Rate: -81.96%
Updated: 2024年12月4日
huggingface.co

Total runs: 23.0K
Run Growth: 7.7K
Growth Rate: 33.79%
Updated: 2024年8月14日
huggingface.co

Total runs: 8.5K
Run Growth: 3.3K
Growth Rate: 36.78%
Updated: 2024年7月16日
huggingface.co

Total runs: 6.4K
Run Growth: 3.3K
Growth Rate: 51.01%
Updated: 2024年10月10日
huggingface.co

Total runs: 6.1K
Run Growth: -21.5K
Growth Rate: -354.06%
Updated: 2024年7月3日
huggingface.co

Total runs: 5.1K
Run Growth: -17.0K
Growth Rate: -321.48%
Updated: 2024年7月16日
huggingface.co

Total runs: 3.7K
Run Growth: 1.7K
Growth Rate: 44.61%
Updated: 2024年5月14日
huggingface.co

Total runs: 2.5K
Run Growth: -163
Growth Rate: -6.49%
Updated: 2024年12月4日
huggingface.co

Total runs: 1.7K
Run Growth: -110
Growth Rate: -6.43%
Updated: 2024年7月16日
huggingface.co

Total runs: 895
Run Growth: 878
Growth Rate: 98.10%
Updated: 2023年1月24日
huggingface.co

Total runs: 502
Run Growth: -100
Growth Rate: -21.23%
Updated: 2023年1月24日
huggingface.co

Total runs: 486
Run Growth: 256
Growth Rate: 52.67%
Updated: 2024年2月12日
huggingface.co

Total runs: 404
Run Growth: 354
Growth Rate: 94.65%
Updated: 2024年6月13日
huggingface.co

Total runs: 313
Run Growth: -437
Growth Rate: -139.62%
Updated: 2024年4月30日
huggingface.co

Total runs: 297
Run Growth: 159
Growth Rate: 53.54%
Updated: 2024年4月19日