Instructions to use ICBU-NPU/FashionGPT-70B-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ICBU-NPU/FashionGPT-70B-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ICBU-NPU/FashionGPT-70B-V1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ICBU-NPU/FashionGPT-70B-V1") model = AutoModelForCausalLM.from_pretrained("ICBU-NPU/FashionGPT-70B-V1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ICBU-NPU/FashionGPT-70B-V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ICBU-NPU/FashionGPT-70B-V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ICBU-NPU/FashionGPT-70B-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ICBU-NPU/FashionGPT-70B-V1
- SGLang
How to use ICBU-NPU/FashionGPT-70B-V1 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 "ICBU-NPU/FashionGPT-70B-V1" \ --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": "ICBU-NPU/FashionGPT-70B-V1", "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 "ICBU-NPU/FashionGPT-70B-V1" \ --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": "ICBU-NPU/FashionGPT-70B-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ICBU-NPU/FashionGPT-70B-V1 with Docker Model Runner:
docker model run hf.co/ICBU-NPU/FashionGPT-70B-V1
FashionGPT-V1
Introduction
This is a llama-2-70B model combined with two adapters via appropriate methods.
Dataset
Here is the list of datasets used:
- Orca-style 40K dataset. This dataset is a filtered subset of OpenOrca-GPT4 and airoboros-gpt4-1.4.1.
- Samantha made by Eric Hartford and cleaned by us, about 6.5K samples.
Training
- We train our adapters with jondurbin's forked QLoRA repo
- We add multi-turn conversational data support from fastchat repo, with minor modifications.
- We use bash shell script similar to airoboros-70b-gpt4-1.4.1 to train our two adapters.
- We found that combining multiple adapters to a single llama-2-70B could achieve better performance than merging only 1 adapter to llama-2-70B. The details of combining multiple adapters will be unveiled in our upcoming paper.
Prompt Template
### System:
{System}
### User:
{User}
### Assistant:
{Assistant}
Evaluation
| Metric | Value |
|---|---|
| ARC (25-shot) | 71.08 |
| HellaSwag (10-shot) | 87.32 |
| MMLU (5-shot) | 70.70 |
| TruthfulQA (0-shot) | 63.92 |
| Avg. | 73.26 |
license disclaimer
This model is bound by the license & usage restrictions of the original Llama-2 model. And comes with no warranty or gurantees of any kind.
Limitations & Biases
Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.
Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/
Citiation:
- airoboros: https://github.com/jondurbin/airoboros
- samantha: https://erichartford.com/meet-samantha
@misc{mukherjee2023orca,
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
year={2023},
eprint={2306.02707},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@article{dettmers2023qlora,
title={QLoRA: Efficient Finetuning of Quantized LLMs},
author={Dettmers, Tim and Pagnoni, Artidoro and Holtzman, Ari and Zettlemoyer, Luke},
journal={arXiv preprint arXiv:2305.14314},
year={2023}
}
@software{touvron2023llama2,
title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
author={Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava,
Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller,
Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez Madian Khabsa, Isabel Kloumann,
Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov,
Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith,
Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu , Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan,
Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, Thomas Scialom},
year={2023}
}
- Downloads last month
- 954