richardcsuwandi commited on
Commit
d167ea8
·
verified ·
1 Parent(s): 726aaba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -1
README.md CHANGED
@@ -29,4 +29,13 @@ The following `bitsandbytes` quantization settings were applied during training:
29
 
30
  ## Usage
31
 
32
- This model is intended for deployment as a conversational chatbot in Javanese. It is suitable for a variety of applications that require natural language understanding in Javanese. Users can interact with the model using the standard Hugging Face Transformers pipeline for text generation.
 
 
 
 
 
 
 
 
 
 
29
 
30
  ## Usage
31
 
32
+ This model is intended for deployment as a conversational chatbot in Javanese. It is suitable for a variety of applications that require natural language understanding in Javanese. Users can interact with the model using the standard Hugging Face Transformers pipeline for text generation.
33
+
34
+ ```python
35
+ from peft import PeftModel, PeftConfig
36
+ from transformers import AutoModelForCausalLM
37
+
38
+ config = PeftConfig.from_pretrained("richardcsuwandi/llama2-javanese")
39
+ base_model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-chat-hf")
40
+ model = PeftModel.from_pretrained(base_model, "richardcsuwandi/llama2-javanese")
41
+ ````