Downloads · 30 days
7
32% of all-time downloads
maliijaz/Finetuned_Qwen2
Finetuned_Qwen2 is a machine learning model from maliijaz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
- Developed by: Muhammad Ali Ijaz - Model type: [More Information Needed] - Language(s) (NLP): Turkish & English - License: Apache 2.0 - Finetuned from model [optional]: Qwen/Qwen2-7B-Instruct-GPTQ-Int8
Downloads · 30 days
7
32% of all-time downloads
All-time downloads
22
Public
Repo size
6.4 MB
Likes
0
Public
Click a slice to open those files.
.json9.8 MB · 55%
From the Hugging Face model README
To use the model use the following code:
First take the base llm using the following code: base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-7B-Instruct-GPTQ-Int8", device_map="auto", trust_remote_code=False, revision="main")
Now load the PEFT model: model = PeftModel.from_pretrained(model=base_model, model_id="maliijaz/Finetuned_Qwen2")
To load the tokenizer, use the following code: tokenizer= AutoTokenizer.from_pretrained("maliijaz/Finetuned_Qwen2", use_fast=True)