flopsy1 commited on
Commit
c6bd378
1 Parent(s): 32dfca8

Initial commit of arXflix fine-tuned Mistral model with LoRA

Browse files
Files changed (4) hide show
  1. README.md +16 -0
  2. lora.safetensors +3 -0
  3. params.json +18 -0
  4. tokenizer.model.v3 +0 -0
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Mistral 7B instruct finetuned to produce script for axflix
2
+
3
+ # Load model directly
4
+ ```py
5
+ from mistral_inference.model import Transformer
6
+ from mistral_inference.generate import generate
7
+
8
+ from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
9
+ from mistral_common.protocol.instruct.messages import UserMessage
10
+ from mistral_common.protocol.instruct.request import ChatCompletionRequest
11
+
12
+
13
+ tokenizer = MistralTokenizer.from_file("tokenizer.model.v3") # change to extracted tokenizer file
14
+ model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3") # change to extracted model dir
15
+ model.load_lora("lora.safetensors")
16
+ ```
lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38905f09396cdfb7303af2cb9191990b52d754739bf5d024091d89e5daae5f25
3
+ size 335594288
params.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dim": 4096,
3
+ "n_layers": 32,
4
+ "head_dim": 128,
5
+ "hidden_dim": 14336,
6
+ "n_heads": 32,
7
+ "n_kv_heads": 8,
8
+ "norm_eps": 1e-05,
9
+ "vocab_size": 32768,
10
+ "rope_theta": 1000000.0,
11
+ "lora": {
12
+ "enable": true,
13
+ "rank": 64,
14
+ "dropout": 0.0,
15
+ "scaling": 2.0
16
+ },
17
+ "moe": null
18
+ }
tokenizer.model.v3 ADDED
Binary file (588 kB). View file