Update loader.py
This commit is contained in:
parent
9d5195296f
commit
ddc2dde97c
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ def _get_new_mapper():
|
|||
import requests
|
||||
new_mapper = "https://raw.githubusercontent.com/unslothai/unsloth/main/unsloth/models/mapper.py"
|
||||
with requests.get(new_mapper, timeout = 3) as new_mapper: new_mapper = new_mapper.text
|
||||
new_mapper = new_mapper[new_mapper.find("__INT_TO_FLOAT_MAPPER"):]
|
||||
new_mapper = new_mapper\
|
||||
.replace("INT_TO_FLOAT_MAPPER", "NEW_INT_TO_FLOAT_MAPPER")\
|
||||
.replace("FLOAT_TO_INT_MAPPER", "NEW_FLOAT_TO_INT_MAPPER")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue