legolasyiu commited on
Commit
3142cc4
·
verified ·
1 Parent(s): 4d51485

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -8
README.md CHANGED
@@ -77,17 +77,23 @@ Improved **MMLU-STEM performance by 30%** through special fine-tuning of GPT-OSS
77
 
78
  ## Getting Started
79
 
80
- ```python
81
- from transformers import AutoModelForCausalLM, AutoTokenizer
82
 
83
- model_name = "your-username/gpt-oss-20b-stem-finetuned"
84
- tokenizer = AutoTokenizer.from_pretrained(model_name)
85
- model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
 
 
 
 
86
 
87
- inputs = tokenizer("What is the derivative of sin(x)?", return_tensors="pt").to(model.device)
88
- outputs = model.generate(**inputs, max_new_tokens=64)
89
- print(tokenizer.decode(outputs[0], skip_special_tokens=True))
 
90
 
 
 
91
  ```
92
  # Training Details
93
 
 
77
 
78
  ## Getting Started
79
 
80
+ ### installation
 
81
 
82
+ ```
83
+ pip install -q --upgrade torch
84
+ pip install -q transformers triton==3.4 kernels
85
+ pip uninstall -q torchvision torchaudio -y
86
+ pip uninstall -y bitsandbytes
87
+ pip install -U bitsandbytes
88
+ ```
89
 
90
+ ```python
91
+ import bitsandbytes as bnb
92
+ from peft import PeftModel
93
+ from transformers import AutoModelForCausalLM
94
 
95
+ base_model = AutoModelForCausalLM.from_pretrained("unsloth/gpt-oss-20b-unsloth-bnb-4bit")
96
+ model = PeftModel.from_pretrained(base_model, "EpistemeAI/gpt-oss-20b-mmlustem")
97
  ```
98
  # Training Details
99