Skip to content

Instantly share code, notes, and snippets.

@younesbelkada
younesbelkada / finetune_sft_trl.py
Last active April 28, 2025 09:33
Benchmarking SFT trainer with 8bit models
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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
@ianmcmahon
ianmcmahon / gist:5737796
Created June 9, 2013 05:55
CORRECTED SPI0_SPIDEV dts.
/*
* Copyright (C) 2013 Ian McMahon <[email protected]>
*
* Virtual cape enabling SPIDEV on SPI0 on connector pins P9.22 P9.21 P9.18 P9.17
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;