GGUF Quantized AMD-OLMo Models
by Professor Nick V. Flor
For research reproducibility purposes
AMD-OLMo
AMD-OLMo are a series of 1B language models trained from scratch by AMD on AMD Instinct™ MI250 GPUs. The training code used is based on
OLMo
.
We release the pre-trained model, supervised fine-tuned model, and DPO aligned model as follows:
Hardware
: Each compute node consists of 4 AMD Instinct™ MI250 GPUs. We use 16 nodes for pretraining AMD-OLMo-1B
Training throughput
: 12,200 tokens/sec/gpu
Model architecture
: AMD-OLMo-1B is based on the model architecture and training set up of fully open source 1 billion version of
OLMo-1B
with the details below:
# install trl library
git clone https://github.com/huggingface/trl.git -b v0.8.6
# replace dpo_trainer.pycp AMD-OLMo/dpo_trainer.py trl/trl/trainer
pip install -e ./trl
# install alignment-handbook
git clone https://github.com/huggingface/alignment-handbook.git hf-align
# 70769f9 is the main branch on 2024-04-11.cd hf-align && git checkout 70769f9 && cd ..
pip install -e ./hf-align
# Copy AMD OLMo DPO recipe to hf-align/recipes.cp AMD-OLMo/AMD-OLMo-1B-dpo.yaml hf-align/recipes/
# Prepare the converted AMD-OLMo SFT Huggingface model to ckpt_dir.
ckpt_dir=amd/AMD-OLMo-1B-SFT
local_tokenizer_dir=${ckpt_dir}# Set output checkpoint dir.
dpo_ckpt_dir=<your_output_checkpoint_dir>
accelerate launch --config_file hf-align/recipes/accelerate_configs/deepspeed_zero3.yaml \
hf-align/scripts/run_dpo.py hf-align/recipes/AMD-OLMo-1B-dpo.yaml \
--trust_remote_code=true \
--model_name_or_path=${ckpt_dir} \
--tokenizer_name_or_path=${local_tokenizer_dir} \
--output_dir=${dpo_ckpt_dir} \
--num_train_epochs=1 \
--learning_rate=4e-6 \
--beta=0.3 \
--loss_type=sigmoid
Bias, Risks, and Limitations
The models are being released for research purposes only and are not intended for use cases that require high levels of factuality, safety critical situations, health or medical applications, generating false information, facilitating toxic conversations.
Model checkpoints are made accessible without any safety guarantees. It is crucial for users to conduct comprehensive evaluations and implement safety filtering mechanisms as per their respective use cases.
It may be possible to prompt the model to generate content that may be factually inaccurate, harmful, violent, toxic, biased, or otherwise objectionable. Such content may also get generated by prompts that did not intend to produce output as such. Users are thus requested to be aware of this and exercise caution and responsible thinking when using the model.
Multi-lingual abilities of the models have not been tested and thus may misunderstand and generate erroneous responses across different languages.
Appendix
Evaluation Metrics
Benchmark
Metric
arc_easy
Normalized Accuracy
arc_challenge
Normalized Accuracy
hellaswag
Normalized Accuracy
piqa
Accuracy
boolq
Accuracy
sciq
Accuracy
winogrande
Accuracy
openbookqa
Normalized Accuracy
mmlu
Accuracy
gsm8k (8-shot)
Exact Match (Flexible Extract)
bbh (3-shot)
Exact Match
ToxiGen
Accuracy
crows_pairs
PCT Stereotype
TruthfulQA-mc2
Accuracy
AlpacaEval 1 (Win Rate)
Win Rate (chatgpt_fn)
AlpacaEval 2 (LC Win Rate)
Length Control Win Rate (weighted_alpaca_eval_gpt4_turbo)
MTBench
Average score for single-answer grading (2 turns)
Feel free to cite our AMD-OLMo models:
@misc{AMD-OLMo,
title = {AMD-OLMo: A series of 1B language models trained from scratch by AMD on AMD Instinct™ MI250 GPUs.},
url = {https://huggingface.co/amd/AMD-OLMo},
author = {Jiang Liu, Jialian Wu, Prakamya Mishra, Zicheng Liu, Sudhanshu Ranjan, Pratik Prabhanjan Brahma, Yusheng Su, Gowtham Ramesh, Peng Sun, Zhe Li, Dong Li, Lu Tian, Emad Barsoum},
month = {October},
year = {2024}
}
License
Copyright (c) 2018-2024 Advanced Micro Devices, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Runs of professorf AMD-OLMo-1B on huggingface.co
29
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About AMD-OLMo-1B huggingface.co Model
AMD-OLMo-1B huggingface.co is an AI model on huggingface.co that provides AMD-OLMo-1B's model effect (), which can be used instantly with this professorf AMD-OLMo-1B model. huggingface.co supports a free trial of the AMD-OLMo-1B model, and also provides paid use of the AMD-OLMo-1B. Support call AMD-OLMo-1B model through api, including Node.js, Python, http.
AMD-OLMo-1B huggingface.co is an online trial and call api platform, which integrates AMD-OLMo-1B's modeling effects, including api services, and provides a free online trial of AMD-OLMo-1B, you can try AMD-OLMo-1B online for free by clicking the link below.
professorf AMD-OLMo-1B online free url in huggingface.co:
AMD-OLMo-1B is an open source model from GitHub that offers a free installation service, and any user can find AMD-OLMo-1B on GitHub to install. At the same time, huggingface.co provides the effect of AMD-OLMo-1B install, users can directly use AMD-OLMo-1B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.