Downloads · 30 days
39
14% of all-time downloads
rubenroy/Zurich-7B-GCv2-50k
Zurich-7B-GCv2-50k is a text generation model from rubenroy. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
39
14% of all-time downloads
All-time downloads
276
Public
Repo size
30.5 GB
Likes
4
Public
Click a slice to open those files.
.bin15.2 GB · 100%
From the Hugging Face model README

A Qwen 2.5 model fine-tuned on the GammaCorpus dataset
Zurich 7B GammaCorpus v2-50k is a fine-tune of Alibaba's Qwen 2.5 7B Instruct model. Zurich is designed to outperform other models that have a similar size while also showcasing GammaCorpus v2-50k.
Zurich-7B-GCv2-50k underwent fine-tuning with 1 T4 GPU for ~45 minutes and trained with the Unsloth framework. Zurich-7B-GCv2-50k was trained for 60 Epochs.
We strongly recommend you use the latest version of the transformers package. You may install it via pip as follows:
pip install transformers
Here is a code snippet with apply_chat_template to show you how to load the tokenizer and model and how to generate contents;
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "rubenroy/Zurich-7B-GCv2-50k"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "How tall is the Eiffel tower?"
messages = [
{"role": "system", "content": "You are Zurich, an AI assistant built on the Qwen 2.5 7B model developed by Alibaba Cloud, and fine-tuned by Ruben Roy. You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
This model, and all Zurich models, are trained with GammaCorpus. GammaCorpus is a dataset on HuggingFace that is filled with structured and filtered multi-turn conversations. GammaCorpus has 4 version with different sizes in each. These are the following versions and sizes:
Here is a link to the GCv1 dataset collection:<br> https://huggingface.co/collections/rubenroy/gammacorpus-v1-67935e4e52a04215f15a7a60
Here is a link to the GCv2 dataset collection:<br> https://huggingface.co/collections/rubenroy/gammacorpus-v2-67935e895e1259c404a579df
Here is a link to the GC-CoT dataset collection:<br> https://huggingface.co/collections/rubenroy/gammacorpus-cot-6795bbc950b62b1ced41d14f
Here is a link to the GC-QA dataset collection:<br> https://huggingface.co/collections/rubenroy/gammacorpus-qa-679857017bb3855234c1d8c7
The model is released under the Apache 2.0 License. Please refer to the license for usage rights and restrictions.