aashish1904 commited on
Commit
e5e98e5
1 Parent(s): 88e444e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +103 -0
README.md ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ language:
5
+ - en
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - cobalt
9
+ - valiant
10
+ - valiant-labs
11
+ - llama
12
+ - llama-3.1
13
+ - llama-3.1-instruct
14
+ - llama-3.1-instruct-8b
15
+ - llama-3
16
+ - llama-3-instruct
17
+ - llama-3-instruct-8b
18
+ - 8b
19
+ - math
20
+ - math-instruct
21
+ - conversational
22
+ - chat
23
+ - instruct
24
+ model_type: llama
25
+ base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
26
+ datasets:
27
+ - sequelbox/Polytope
28
+ - LDJnr/Pure-Dove
29
+ license: llama3.1
30
+
31
+ ---
32
+
33
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
34
+
35
+ # QuantFactory/Llama3.1-8B-Cobalt-GGUF
36
+ This is quantized version of [ValiantLabs/Llama3.1-8B-Cobalt](https://huggingface.co/ValiantLabs/Llama3.1-8B-Cobalt) created using llama.cpp
37
+
38
+ # Original Model Card
39
+
40
+
41
+
42
+ Cobalt is a math-instruct model built on Llama 3.1 8b.
43
+ - High quality math instruct performance within the Llama 3 Instruct chat format
44
+ - Finetuned on synthetic math-instruct data generated with Llama 3.1 405b. [Find the current version of the dataset here!](https://huggingface.co/datasets/sequelbox/Polytope)
45
+
46
+
47
+ ## Version
48
+
49
+ This is the **2024-08-16** release of Cobalt for Llama 3.1 8b.
50
+
51
+ Help us and recommend Cobalt to your friends! We're excited for more Cobalt releases in the future.
52
+
53
+ Right now, we're working on more new Build Tools to come very soon, built on Llama 3.1 :)
54
+
55
+
56
+ ## Prompting Guide
57
+ Cobalt uses the [Llama 3.1 Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct) prompt format. The example script below can be used as a starting point for general chat:
58
+
59
+
60
+ import transformers
61
+ import torch
62
+
63
+ model_id = "ValiantLabs/Llama3.1-8B-Cobalt"
64
+
65
+ pipeline = transformers.pipeline(
66
+ "text-generation",
67
+ model=model_id,
68
+ model_kwargs={"torch_dtype": torch.bfloat16},
69
+ device_map="auto",
70
+ )
71
+
72
+ messages = [
73
+ {"role": "system", "content": "You are Cobalt, expert math AI."},
74
+ {"role": "user", "content": "I'm buying a $50 shirt and a $80 pair of pants, both currently at a 25% discount. How much will I pay?"}
75
+ ]
76
+
77
+ outputs = pipeline(
78
+ messages,
79
+ max_new_tokens=1024,
80
+ )
81
+
82
+ print(outputs[0]["generated_text"][-1])
83
+
84
+
85
+ ## The Model
86
+ Cobalt is built on top of Llama 3.1 8b Instruct, using math-instruct data to supplement math-instruct performance using Llama 3.1 Instruct prompt style.
87
+
88
+ Our current version of the Cobalt math-instruct dataset is [sequelbox/Polytope](https://huggingface.co/datasets/sequelbox/Polytope), supplemented with a small selection of data from [LDJnr/Pure-Dove](https://huggingface.co/datasets/LDJnr/Pure-Dove) for general chat consistency.
89
+
90
+
91
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/63444f2687964b331809eb55/VCJ8Fmefd8cdVhXSSxJiD.jpeg)
92
+
93
+
94
+ Cobalt is created by [Valiant Labs.](http://valiantlabs.ca/)
95
+
96
+ [Check out our HuggingFace page for Shining Valiant 2 and our other Build Tools models for creators!](https://huggingface.co/ValiantLabs)
97
+
98
+ [Follow us on X for updates on our models!](https://twitter.com/valiant_labs)
99
+
100
+ We care about open source.
101
+ For everyone to use.
102
+
103
+ We encourage others to finetune further from our models.