Run this model with HF Jobs
Run togethercomputer/GPT-NeoXT-Chat-Base-20B 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/togethercomputer/GPT-NeoXT-Chat-Base-20B. 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/togethercomputer/GPT-NeoXT-Chat-Base-20B 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/togethercomputer/GPT-NeoXT-Chat-Base-20B. 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/togethercomputer/GPT-NeoXT-Chat-Base-20B. 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 togethercomputer/GPT-NeoXT-Chat-Base-20B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use togethercomputer/GPT-NeoXT-Chat-Base-20B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="togethercomputer/GPT-NeoXT-Chat-Base-20B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("togethercomputer/GPT-NeoXT-Chat-Base-20B") model = AutoModelForCausalLM.from_pretrained("togethercomputer/GPT-NeoXT-Chat-Base-20B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use togethercomputer/GPT-NeoXT-Chat-Base-20B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "togethercomputer/GPT-NeoXT-Chat-Base-20B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "togethercomputer/GPT-NeoXT-Chat-Base-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/togethercomputer/GPT-NeoXT-Chat-Base-20B
- SGLang
How to use togethercomputer/GPT-NeoXT-Chat-Base-20B 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 "togethercomputer/GPT-NeoXT-Chat-Base-20B" \ --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": "togethercomputer/GPT-NeoXT-Chat-Base-20B", "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 "togethercomputer/GPT-NeoXT-Chat-Base-20B" \ --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": "togethercomputer/GPT-NeoXT-Chat-Base-20B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use togethercomputer/GPT-NeoXT-Chat-Base-20B with Docker Model Runner:
docker model run hf.co/togethercomputer/GPT-NeoXT-Chat-Base-20B
Update README.md
Browse files2 unmodified lines34567891011121314151617181920212223242526272829303132333435363712 unmodified lines50515253545556575859606162636465666768697071727374757677787980818283844 unmodified lines89909192939495969798999 unmodified lines1091101111121131141151161171181191201211221232 unmodified lineslanguage:- en---# OpenChaT v1This model card focuses on the model associated with the OpenChaT model, codebase available [here](https://github.com/togethercomputer/OpenChaT).\[TODO: description\]This OpenChaT v1 model is fine-tuned from...## Model Details- **Developed by**: \[TODO\] Together Computer, LAION, ...- **Model type**: \[TODO\]- **Language(s)**: English- **License**: Apache 2.0- **Model Description**: \[TODO\]- **Resources for more information**: [GitHub Repository](https://github.com/togethercomputer/OpenChaT).**Cite as**\[TODO\]@InProceedings{Rombach_2022_CVPR,author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},title = {High-Resolution Image Synthesis With Latent Diffusion Models},booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},month = {June},year = {2022},pages = {10684-10695}}## Examples\[TODO\]# Uses\[TODO\]12 unmodified linesExcluded uses are described below.### Misuse, Malicious Use, and Out-of-Scope Use\[TODO\]_Note: This section is originally taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), was used for Stable Diffusion v1, but applies in the same way to Stable Diffusion v2_.The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.#### Out-of-Scope Use\[TODO\]The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.#### Misuse and Malicious Use\[TODO\]Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:- Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.- Intentionally promoting or propagating discriminatory content or harmful stereotypes.- Impersonating individuals without their consent.- Sexual content without consent of the people who might see it.- Mis- and disinformation- Representations of egregious violence and gore- Sharing of copyrighted or licensed material in violation of its terms of use.- Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.## Limitations and Bias### Limitations\[TODO\]### Bias\[TODO\]## Training4 unmodified lines\[TODO\]\[TODO\]- **Hardware:** 32 x 8 x A100 GPUs- **Optimizer:** AdamW- **Gradient Accumulations**: 1- **Batch:** 32 x 8 x 2 x 4 = 2048- **Learning rate:** warmup to 0.0001 for 10,000 steps and then kept constant## Evaluation Results\[TODO\]9 unmodified lines- **Compute Region:** US-east- **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 15000 kg CO2 eq.## Citation\[TODO\]@InProceedings{Rombach_2022_CVPR,author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},title = {High-Resolution Image Synthesis With Latent Diffusion Models},booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},month = {June},year = {2022},pages = {10684-10695}}*This model card was written by: \[TODO\]2 unmodified lines34567891011121314151617181920212223242512 unmodified lines3839404142434445464748495051525354555657585960616263646566676869707172737475764 unmodified lines81828384858687888990919 unmodified lines1011021031042 unmodified lineslanguage:- en---# GPT-NeoXT-Chat-Base-20BGPT-NeoXT-Chat-Base-20B is a 20B parameter open source chat model, fine-tuned from EleutherAI’s GPT-NeoX with over 40 million instructions on 100% carbon negative compute.It is part of OpenChatKit (codebase available [here](https://github.com/togethercomputer/OpenChaT))a community project that enables the open source AI contributors to improve the datasets available for training large language models and chatbots.## Model Details- **Developed by**: \[TODO\] Together Computer, LAION, Ontocord, ...- **Model type**: Language Model- **Language(s)**: English- **License**: Apache 2.0- **Model Description**: A 20B parameter open source chat model, fine-tuned from EleutherAI’s NeoX with over 40M instructions on 100% carbon negative compute- **Resources for more information**: [GitHub Repository](https://github.com/togethercomputer/OpenChaT).## Examples\[TODO\] sync with the blog post# Uses\[TODO\]12 unmodified linesExcluded uses are described below.### Misuse, Malicious Use, and Out-of-Scope UseThe OpenChatKit community provides GPT-NeoXT-Chat-Base-20B as an open source tool for building chatbots.The community is not responsible for any misuse, malicious use, or out-of-scope use of the model.It is the responsibility of the end user to ensure that the model is used in a responsible and ethical manner.#### Out-of-Scope UseGPT-NeoXT-Chat-Base-20B is designed for use in chatbot applications and may not perform well for other use cases outside of its intended scope.For example, it may not be suitable for use in safety-critical applications or for making decisions that have a significant impact on individuals or society.It is important to consider the limitations of the model and to only use it for its intended purpose.#### Misuse and Malicious UseGPT-NeoXT-Chat-Base-20B is designed for use in chatbot applications and should not be used for any other purpose.Misuse of the model, such as using it to engage in illegal or unethical activities, is strictly prohibited and goes against the principles of the OpenChatKit community project.Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:- Generating fake news, misinformation, or propaganda- Promoting hate speech, discrimination, or violence against individuals or groups- Impersonating individuals or organizations without their consent- Engaging in cyberbullying or harassment- Defamatory content- Spamming or scamming- Sharing confidential or sensitive information without proper authorization- Violating the terms of use of the model or the data used to train it- Creating automated bots for malicious purposes such as spreading malware, phishing scams, or spamming## LimitationsGPT-NeoXT-Chat-Base-20B, like other language model-based chatbots, has limitations that should be taken into consideration.For example, the model may not always provide accurate or relevant answers, particularly for questions that are complex, ambiguous, or outside of its training data.We therefore welcome contributions from individuals and organizations, and encourage collaboration towards creating a more robust and inclusive chatbot.## Training4 unmodified lines\[TODO\]\[TODO\]- **Hardware:** 2 x 8 x A100 GPUs- **Optimizer:** AdamW- **Gradient Accumulations**: 2- **Batch:** 2 x 2 x 64 x 2048 = 524288 tokens- **Learning rate:** warmup to 1e-6 for 100 steps and then kept constant## Evaluation Results\[TODO\]9 unmodified lines- **Compute Region:** US-east- **Carbon Emitted (Power consumption x Time x Carbon produced based on location of power grid):** 15000 kg CO2 eq.
README.md+38-57