import torch
from huggingface_hub import cached_download
from transformers import AutoModelForCausalLM
from peft import LoraConfig, PeftModel, get_peft_model
torch.manual_seed(0)
model = AutoModelForCausalLM.from_pretrained("hf-internal-testing/tiny-random-BertModel").eval()
lora_config = LoraConfig(init_lora_weights=False)
peft_model = get_peft_model(model, lora_config)
peft_model.push_to_hub("peft-internal-testing/tiny-random-BertModel-lora")
del model, peft_model
torch.manual_seed(0)
model = AutoModelForCausalLM.from_pretrained("hf-internal-testing/tiny-random-BertModel").eval()
torch.manual_seed(1)
lora_config = LoraConfig(init_lora_weights=False)
peft_model = get_peft_model(model, lora_config)
peft_model.push_to_hub("peft-internal-testing/tiny-random-BertModel-lora", revision="v1.2.3")
Runs of peft-internal-testing tiny-random-BertModel-lora on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About tiny-random-BertModel-lora huggingface.co Model
tiny-random-BertModel-lora huggingface.co
tiny-random-BertModel-lora huggingface.co is an AI model on huggingface.co that provides tiny-random-BertModel-lora's model effect (), which can be used instantly with this peft-internal-testing tiny-random-BertModel-lora model. huggingface.co supports a free trial of the tiny-random-BertModel-lora model, and also provides paid use of the tiny-random-BertModel-lora. Support call tiny-random-BertModel-lora model through api, including Node.js, Python, http.
tiny-random-BertModel-lora huggingface.co is an online trial and call api platform, which integrates tiny-random-BertModel-lora's modeling effects, including api services, and provides a free online trial of tiny-random-BertModel-lora, you can try tiny-random-BertModel-lora online for free by clicking the link below.
peft-internal-testing tiny-random-BertModel-lora online free url in huggingface.co:
tiny-random-BertModel-lora is an open source model from GitHub that offers a free installation service, and any user can find tiny-random-BertModel-lora on GitHub to install. At the same time, huggingface.co provides the effect of tiny-random-BertModel-lora install, users can directly use tiny-random-BertModel-lora installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
tiny-random-BertModel-lora install url in huggingface.co: