Casual-Autopsy commited on
Commit
c8ba9b6
1 Parent(s): ff93027

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - merge
4
+ - mergekit
5
+ - lazymergekit
6
+ ---
7
+
8
+ # Jamet-8B-Stheno-BlackOasis-8B-test001
9
+
10
+ Jamet-8B-Stheno-BlackOasis-8B-test001 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
11
+
12
+ ## 🧩 Configuration
13
+
14
+ ```yaml
15
+ models:
16
+ - model: grimjim/Llama-3-Oasis-v1-OAS-8B
17
+ - model: Hastagaras/Jamet-8B-L3-MK.V-Blackroot
18
+ - model: Sao10K/L3-8B-Stheno-v3.2
19
+ merge_method: model_stock
20
+ base_model: Sao10K/L3-8B-Stheno-v3.2
21
+ ```
22
+
23
+ ## 💻 Usage
24
+
25
+ ```python
26
+ !pip install -qU transformers accelerate
27
+
28
+ from transformers import AutoTokenizer
29
+ import transformers
30
+ import torch
31
+
32
+ model = "Casual-Autopsy/Jamet-8B-Stheno-BlackOasis-8B-test001"
33
+ messages = [{"role": "user", "content": "What is a large language model?"}]
34
+
35
+ tokenizer = AutoTokenizer.from_pretrained(model)
36
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
37
+ pipeline = transformers.pipeline(
38
+ "text-generation",
39
+ model=model,
40
+ torch_dtype=torch.float16,
41
+ device_map="auto",
42
+ )
43
+
44
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
45
+ print(outputs[0]["generated_text"])
46
+ ```