bhatta1 commited on
Commit
fc3ef85
·
verified ·
1 Parent(s): ab0d3bf

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +79 -3
README.md CHANGED
@@ -1,3 +1,79 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ viewer: false
3
+ license: apache-2.0
4
+ language: en
5
+ library_name: transformers
6
+ ---
7
+
8
+ **Model Summary:**
9
+
10
+ This model is part of the [GneissWeb](https://huggingface.co/datasets/ibm-granite/GneissWeb) ablations, detailed in this [technical report](https://arxiv.org/pdf/2502.14907). The model has 7 billion parameters and uses the LLama architecture. It is trained on a random subset of 350 billion English tokens from FineWeb V1.1.0, tokenized using the StarCoder tokenizer.
11
+
12
+ - Developers: IBM Research
13
+
14
+ - Release Date: Feb 25th, 2025
15
+
16
+ - License: Apache 2.0
17
+
18
+ **Intended Use**:
19
+
20
+ This model is trained on 350B tokens of English FineWeb V1.1.0 data and is not instruction-tuned or safety aligned. It is important to note that the primary intended use case for this model is to compare its performance with other models trained under similar conditions, with the goal of comparing pre-training datasets. These other models include
21
+
22
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed1](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed1)
23
+
24
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1)
25
+
26
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed2](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed2)
27
+
28
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2)
29
+
30
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed3](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed3)
31
+
32
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3)
33
+
34
+ [GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed2](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed2)
35
+
36
+ [GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed3](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed3)
37
+
38
+ **Generation**:
39
+
40
+ This is a simple example of how to use `GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed1` model.
41
+
42
+ Install the following libraries:
43
+
44
+ ```shell
45
+ pip install torch torchvision torchaudio
46
+ pip install accelerate
47
+ pip install transformers
48
+ ```
49
+ Then, copy the code snippet below to run the example.
50
+
51
+ ```python
52
+ from transformers import AutoModelForCausalLM, AutoTokenizer
53
+ device = "auto"
54
+ model_path = "ibm-granite/GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed1"
55
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
56
+ # drop device_map if running on CPU
57
+ model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
58
+ model.eval()
59
+ # change input text as desired
60
+ input_text = "What is the meaning of 'Gneiss'?"
61
+ # tokenize the text
62
+ input_tokens = tokenizer(input_text, return_tensors="pt").to('cuda')
63
+ # generate output tokens
64
+ output = model.generate(**input_tokens,
65
+ max_length=43)
66
+ # decode output tokens into text
67
+ output = tokenizer.batch_decode(output)
68
+ # print output
69
+ print(output)
70
+
71
+ ```
72
+
73
+ **Evaluation Results**: Please refer to section 5.3.2 of the [GneissWeb](https://arxiv.org/pdf/2502.14907) paper.
74
+
75
+ **Infrastructure**: Please refer to section 5.2 of the [GneissWeb](https://arxiv.org/pdf/2502.14907) paper.
76
+
77
+ **Ethical Considerations and Limitations**: The use of Large Language Models involves risks and ethical considerations people must be aware of, including but not limited to: bias and fairness, misinformation, and autonomous decision-making. `GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed1` is not the exception in this regard. Even though this model is suited for multiple generative AI tasks, it has not undergone any safety alignment, there it may produce problematic outputs. Additionally, it remains uncertain whether smaller models might exhibit increased susceptibility to hallucination in generation scenarios by copying text verbatim from the training dataset due to their reduced sizes and memorization capacities. This aspect is currently an active area of research, and we anticipate more rigorous exploration, comprehension, and mitigations in this domain. Regarding ethics, a latent risk associated with all Large Language Models is their malicious utilization. We urge the community to use `GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed1` model with ethical intentions and in a responsible way.
78
+
79
+ **Resources**: Learn more about GneissWeb [here](https://huggingface.co/datasets/ibm-granite/GneissWeb).