Views
No views yet
```json) that often cause parsing errors in automated pipelines.adapter_config.json) for PEFT workflows.1from unsloth import FastLanguageModel
2from peft import PeftModel
3
4model, tokenizer = FastLanguageModel.from_pretrained(
5 model_name = "unsloth/Qwen2.5-7B-Instruct-bnb-4bit",
6 load_in_4bit = True,
7)
8model = PeftModel.from_pretrained(model, "makotonlo/LLM2026_DPO_SFT19_v18")
9
10### 🛠️ How to apply this immediately
11
12You can either click **"Edit model card"** in your browser and paste the text above, or run this quick Python cell in your Colab to push the update automatically:
13
14```python
15from huggingface_hub import HfApi
16from google.colab import userdata
17
18api = HfApi()
19repo_id = "makotonlo/LLM2026_DPO_SFT19_v18"
20token = userdata.get('HF_TOKEN')
21
22# Define the English content
23readme_content = """ (Paste the Markdown above here) """
24
25with open("README.md", "w", encoding="utf-8") as f:
26 f.write(readme_content)
27
28api.upload_file(
29 path_or_fileobj="README.md",
30 path_in_repo="README.md",
31 repo_id=repo_id,
32 token=token
33)
34print("✅ README updated to standard English professional format!")