Merge pull request #32 from huggingface/v0.0.1-release

V0.0.1 release
This commit is contained in:
Sourab Mangrulkar
2023-01-20 14:37:57 +05:30
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ extras["dev"] = extras["quality"] + extras["docs_specific"]
setup(
name="peft",
version="0.1.0.dev0",
version="0.0.2",
description="Parameter-Efficient Fine-Tuning (PEFT)",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
+1 -1
View File
@@ -17,7 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "0.1.0.dev0"
__version__ = "0.0.2"
from .mapping import MODEL_TYPE_TO_PEFT_MODEL_MAPPING, PEFT_TYPE_TO_CONFIG_MAPPING, get_peft_config, get_peft_model
from .peft_model import (
+1 -1
View File
@@ -58,7 +58,7 @@ class LoraConfig(PeftConfig):
default=False,
metadata={"help": "Set this to True if the layer to replace stores weight like (fan_in, fan_out)"},
)
enable_lora: Optional[list[bool]] = field(default=None, metadata={"help": "Used with `lora.MergedLinear`."})
enable_lora: Optional[List[bool]] = field(default=None, metadata={"help": "Used with `lora.MergedLinear`."})
bias: str = field(default="none", metadata={"help": "Bias type for Lora. Can be 'none', 'all' or 'lora_only'"})
def __post_init__(self):