初始化项目,由ModelHub XC社区提供模型

Model: guardrail/llama-2-7b-guanaco-instruct-sharded
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-03 21:55:48 +08:00
commit ad5788e80d
22 changed files with 93905 additions and 0 deletions

19
README.md Normal file
View File

@@ -0,0 +1,19 @@
---
license: apache-2.0
datasets:
- timdettmers/openassistant-guanaco
pipeline_tag: text-generation
---
Model that is fine-tuned in 4-bit precision using QLoRA on [timdettmers/openassistant-guanaco](https://huggingface.co/datasets/timdettmers/openassistant-guanaco) and sharded to be used on a free Google Colab instance that can be loaded with 4bits.
It can be easily imported using the `AutoModelForCausalLM` class from `transformers`:
```
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"guardrail/llama-2-7b-guanaco-instruct-sharded",
load_in_4bit=True)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
```