abumafrim commited on
Commit
e20de47
·
verified ·
1 Parent(s): bb6bcb8

Update example model/adapter paths to dsfsi namespace

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -33,7 +33,7 @@ model-index:
33
 
34
  # gemma_3_4b_it-lora-r128-yor-eng
35
 
36
- [![Model on HF](https://huggingface.co/datasets/huggingface/badges/raw/main/model-on-hf-sm.svg)](https://huggingface.co/AfriScience-MT/gemma_3_4b_it-lora-r128-yor-eng)
37
 
38
  This is a **LoRA adapter** for the AfriScience-MT project, enabling efficient scientific machine translation for African languages.
39
 
@@ -93,7 +93,7 @@ base_model = AutoModelForCausalLM.from_pretrained(
93
  tokenizer = AutoTokenizer.from_pretrained("google/gemma-3-4b-it")
94
 
95
  # Load LoRA adapter
96
- adapter_name = "AfriScience-MT/gemma_3_4b_it-lora-r128-yor-eng"
97
  model = PeftModel.from_pretrained(base_model, adapter_name)
98
  model.eval()
99
 
@@ -131,7 +131,7 @@ base_model = AutoModelForCausalLM.from_pretrained(
131
  device_map="auto",
132
  torch_dtype=torch.bfloat16,
133
  )
134
- model = PeftModel.from_pretrained(base_model, "AfriScience-MT/gemma_3_4b_it-lora-r128-yor-eng")
135
  ```
136
 
137
  ## Training Details
 
33
 
34
  # gemma_3_4b_it-lora-r128-yor-eng
35
 
36
+ [![Model on HF](https://huggingface.co/datasets/huggingface/badges/raw/main/model-on-hf-sm.svg)](https://huggingface.co/dsfsi/gemma_3_4b_it-lora-r128-yor-eng)
37
 
38
  This is a **LoRA adapter** for the AfriScience-MT project, enabling efficient scientific machine translation for African languages.
39
 
 
93
  tokenizer = AutoTokenizer.from_pretrained("google/gemma-3-4b-it")
94
 
95
  # Load LoRA adapter
96
+ adapter_name = "dsfsi/gemma_3_4b_it-lora-r128-yor-eng"
97
  model = PeftModel.from_pretrained(base_model, adapter_name)
98
  model.eval()
99
 
 
131
  device_map="auto",
132
  torch_dtype=torch.bfloat16,
133
  )
134
+ model = PeftModel.from_pretrained(base_model, "dsfsi/gemma_3_4b_it-lora-r128-yor-eng")
135
  ```
136
 
137
  ## Training Details