bhatta1 commited on
Commit
eb4098a
·
verified ·
1 Parent(s): 31ebf4f

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -3
README.md CHANGED
@@ -1,3 +1,80 @@
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_GneissWeb.seed1](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_GneissWeb.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_GneissWeb.seed2](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_GneissWeb.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_GneissWeb.seed3](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_GneissWeb.seed3)
33
+
34
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2)
35
+
36
+ [GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3](https://huggingface.co/ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3)
37
+
38
+
39
+ **Generation**:
40
+
41
+ This is a simple example of how to use `GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1` model.
42
+
43
+ Install the following libraries:
44
+
45
+ ```shell
46
+ pip install torch torchvision torchaudio
47
+ pip install accelerate
48
+ pip install transformers
49
+ ```
50
+ Then, copy the code snippet below to run the example.
51
+
52
+ ```python
53
+ from transformers import AutoModelForCausalLM, AutoTokenizer
54
+ device = "auto"
55
+ model_path = "ibm-granite/GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1"
56
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
57
+ # drop device_map if running on CPU
58
+ model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
59
+ model.eval()
60
+ # change input text as desired
61
+ input_text = "What is the meaning of 'Gneiss'?"
62
+ # tokenize the text
63
+ input_tokens = tokenizer(input_text, return_tensors="pt").to('cuda')
64
+ # generate output tokens
65
+ output = model.generate(**input_tokens,
66
+ max_length=35)
67
+ # decode output tokens into text
68
+ output = tokenizer.batch_decode(output)
69
+ # print output
70
+ print(output)
71
+
72
+ ```
73
+
74
+ **Evaluation Results**: Please refer to section 5.3.2 of the [GneissWeb](https://arxiv.org/pdf/2502.14907) paper.
75
+
76
+ **Infrastructure**: Please refer to section 5.2 of the [GneissWeb](https://arxiv.org/pdf/2502.14907) paper.
77
+
78
+ **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_FineWeb.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, thus 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_FineWeb.seed1` model with ethical intentions and in a responsible way.
79
+
80
+ **Resources**: Learn more about GneissWeb [here](https://huggingface.co/datasets/ibm-granite/GneissWeb).