Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| datagemma-rag-27b-it.Q2_K.gguf | Q2_K | 9.73GB |
| datagemma-rag-27b-it.IQ3_XS.gguf | IQ3_XS | 10.76GB |
| datagemma-rag-27b-it.IQ3_S.gguf | IQ3_S | 11.33GB |
| datagemma-rag-27b-it.Q3_K_S.gguf | Q3_K_S | 11.33GB |
| datagemma-rag-27b-it.IQ3_M.gguf | IQ3_M | 11.6GB |
| datagemma-rag-27b-it.Q3_K.gguf | Q3_K | 12.5GB |
| datagemma-rag-27b-it.Q3_K_M.gguf | Q3_K_M | 12.5GB |
| datagemma-rag-27b-it.Q3_K_L.gguf | Q3_K_L | 13.52GB |
| datagemma-rag-27b-it.IQ4_XS.gguf | IQ4_XS | 13.92GB |
| datagemma-rag-27b-it.Q4_0.gguf | Q4_0 | 14.56GB |
| datagemma-rag-27b-it.IQ4_NL.gguf | IQ4_NL | 14.65GB |
| datagemma-rag-27b-it.Q4_K_S.gguf | Q4_K_S | 14.66GB |
| datagemma-rag-27b-it.Q4_K.gguf | Q4_K | 15.5GB |
| datagemma-rag-27b-it.Q4_K_M.gguf | Q4_K_M | 15.5GB |
| datagemma-rag-27b-it.Q4_1.gguf | Q4_1 | 16.07GB |
| datagemma-rag-27b-it.Q5_0.gguf | Q5_0 | 17.59GB |
| datagemma-rag-27b-it.Q5_K_S.gguf | Q5_K_S | 17.59GB |
| datagemma-rag-27b-it.Q5_K.gguf | Q5_K | 18.08GB |
| datagemma-rag-27b-it.Q5_K_M.gguf | Q5_K_M | 18.08GB |
| datagemma-rag-27b-it.Q5_1.gguf | Q5_1 | 19.1GB |
| datagemma-rag-27b-it.Q6_K.gguf | Q6_K | 20.81GB |
| datagemma-rag-27b-it.Q8_0.gguf | Q8_0 | 26.95GB |
[User Query]:Your role is that of a Question Generator. Given Query below, come up with a
maximum of 25 Statistical Questions that help in answering Query.
These are the only forms of Statistical Questions you can generate:
1. What is $METRIC in $PLACE?
2. What is $METRIC in $PLACE $PLACE_TYPE?
3. How has $METRIC changed over time in $PLACE $PLACE_TYPE?
where,
- $METRIC should a metric on societal topics like demographics, economy, health,
education, environment, etc. Examples are unemployment rate and
life expectancy.
- $PLACE is the name of a place like California, World, Chennai, etc.
- $PLACE_TYPE is an immediate child type within $PLACE, like counties, states,
districts, etc.
Your response should only have questions, one per line, without any numbering
or bullet.
If you cannot come up with Statistical Questions to ask for a Query, return an
empty response.
Query: [User Query]
Statistical Questions:pip install -U transformers accelerate, then copy the code snippet from the following section.1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4model_id = 'google/datagemma-rag-27b-it'
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 device_map='auto',
9 torch_dtype=torch.bfloat16,
10)
11
12input_text = """Your role is that of a Question Generator. Given Query below, come up with a
13maximum of 25 Statistical Questions that help in answering Query.
14
15These are the only forms of Statistical Questions you can generate:
161. What is $METRIC in $PLACE?
172. What is $METRIC in $PLACE $PLACE_TYPE?
183. How has $METRIC changed over time in $PLACE $PLACE_TYPE?
19
20where,
21- $METRIC should be a metric on societal topics like demographics, economy, health,
22 education, environment, etc. Examples are unemployment rate and
23 life expectancy.
24- $PLACE is the name of a place like California, World, Chennai, etc.
25- $PLACE_TYPE is an immediate child type within $PLACE, like counties, states,
26 districts, etc.
27
28Your response should only have questions, one per line, without any numbering
29or bullet.
30
31If you cannot come up with Statistical Questions to ask for a Query, return an
32empty response.
33
34Query: What are some interesting trends in Sunnyvale spanning gender, age, race, immigration, health conditions, economic conditions, crime and education?
35Statistical Questions:"""
36inputs = tokenizer(input_text, return_tensors='pt').to('cuda')
37
38outputs = model.generate(**inputs, max_new_tokens=4096)
39answer = tokenizer.batch_decode(outputs[:, inputs['input_ids'].shape[1]:], skip_special_tokens=True)[0].strip()
40print(answer)What is the population of Sunnyvale?
What is the population of Sunnyvale males?
What is the population of Sunnyvale females?
What is the population of Sunnyvale asians?
What is the population of Sunnyvale blacks?
What is the population of Sunnyvale whites?
What is the population of Sunnyvale males in their 20s?
What is the population of Sunnyvale females in their 20s?
What is the population of Sunnyvale males in their 30s?
What is the population of Sunnyvale females in their 30s?
What is the population of Sunnyvale males in their 40s?
What is the population of Sunnyvale females in their 40s?
What is the population of Sunnyvale males in their 50s?
What is the population of Sunnyvale females in their 50s?
What is the population of Sunnyvale males in their 60s?
What is the population of Sunnyvale females in their 60s?
How has the population of Sunnyvale changed over time?
How has the population of Sunnyvale males changed over time?
How has the population of Sunnyvale females changed over time?
How has the population of Sunnyvale asian people changed over time?
How has the population of Sunnyvale black people changed over time?
How has the population of Sunnyvale hispanic people changed over time?
How has the population of Sunnyvale white people changed over time?
How has the score on Sunnyvale schools changed over time?
How has the number of students enrolled in Sunnyvale schools changed over time?
How has the number of students enrolled in Sunnyvale charter schools changed over time?
How has the number of students enrolled in Sunnyvale private schools changed over time?pip install -U transformers bitsandbytes accelerate, then copy the code snippet from the following section.1from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
2import torch
3nf4_config = BitsAndBytesConfig(
4 load_in_4bit=True,
5 bnb_4bit_quant_type='nf4',
6 bnb_4bit_compute_dtype=torch.bfloat16,
7)
8
9model_id = 'google/datagemma-rag-27b-it'
10tokenizer = AutoTokenizer.from_pretrained(model_id)
11model = AutoModelForCausalLM.from_pretrained(
12 model_id,
13 device_map='auto',
14 quantization_config=nf4_config,
15 torch_dtype=torch.bfloat16,
16)
17input_text = """Your role is that of a Question Generator. Given Query below, come up with a
18maximum of 25 Statistical Questions that help in answering Query.
19These are the only forms of Statistical Questions you can generate:
201. What is $METRIC in $PLACE?
212. What is $METRIC in $PLACE $PLACE_TYPE?
223. How has $METRIC changed over time in $PLACE $PLACE_TYPE?
23where,
24- $METRIC should be a metric on societal topics like demographics, economy, health,
25 education, environment, etc. Examples are unemployment rate and
26 life expectancy.
27- $PLACE is the name of a place like California, World, Chennai, etc.
28- $PLACE_TYPE is an immediate child type within $PLACE, like counties, states,
29 districts, etc.
30
31Your response should only have questions, one per line, without any numbering
32or bullet.
33
34If you cannot come up with Statistical Questions to ask for a Query, return an
35empty response.
36
37Query: What are some interesting trends in Sunnyvale spanning gender, age, race, immigration, health conditions, economic conditions, crime and education?
38Statistical Questions:"""
39inputs = tokenizer(input_text, return_tensors='pt').to('cuda')
40
41outputs = model.generate(**inputs, max_new_tokens=4096)
42answer = tokenizer.batch_decode(outputs[:, inputs['input_ids'].shape[1]:], skip_special_tokens=True)[0].strip()
43print(answer)1@misc{radhakrishnan2024knowing,
2 title={Knowing When to Ask - Bridging Large Language Models and Data},
3 author={Prashanth Radhakrishnan and Jennifer Chen and Bo Xu and Prem Ramaswami and Hannah Pho and Adriana Olmos and James Manyika and R. V. Guha},
4 year={2024},
5 eprint={},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://datacommons.org/link/DataGemmaPaper},
9}