Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| datagemma-rig-27b-it.Q2_K.gguf | Q2_K | 9.73GB |
| datagemma-rig-27b-it.IQ3_XS.gguf | IQ3_XS | 10.76GB |
| datagemma-rig-27b-it.IQ3_S.gguf | IQ3_S | 11.33GB |
| datagemma-rig-27b-it.Q3_K_S.gguf | Q3_K_S | 11.33GB |
| datagemma-rig-27b-it.IQ3_M.gguf | IQ3_M | 11.6GB |
| datagemma-rig-27b-it.Q3_K.gguf | Q3_K | 12.5GB |
| datagemma-rig-27b-it.Q3_K_M.gguf | Q3_K_M | 12.5GB |
| datagemma-rig-27b-it.Q3_K_L.gguf | Q3_K_L | 13.52GB |
| datagemma-rig-27b-it.IQ4_XS.gguf | IQ4_XS | 13.92GB |
| datagemma-rig-27b-it.Q4_0.gguf | Q4_0 | 14.56GB |
| datagemma-rig-27b-it.IQ4_NL.gguf | IQ4_NL | 14.65GB |
| datagemma-rig-27b-it.Q4_K_S.gguf | Q4_K_S | 14.66GB |
| datagemma-rig-27b-it.Q4_K.gguf | Q4_K | 15.5GB |
| datagemma-rig-27b-it.Q4_K_M.gguf | Q4_K_M | 15.5GB |
| datagemma-rig-27b-it.Q4_1.gguf | Q4_1 | 16.07GB |
| datagemma-rig-27b-it.Q5_0.gguf | Q5_0 | 17.59GB |
| datagemma-rig-27b-it.Q5_K_S.gguf | Q5_K_S | 17.59GB |
| datagemma-rig-27b-it.Q5_K.gguf | Q5_K | 18.08GB |
| datagemma-rig-27b-it.Q5_K_M.gguf | Q5_K_M | 18.08GB |
| datagemma-rig-27b-it.Q5_1.gguf | Q5_1 | 19.1GB |
| datagemma-rig-27b-it.Q6_K.gguf | Q6_K | 20.81GB |
| datagemma-rig-27b-it.Q8_0.gguf | Q8_0 | 26.95GB |
[__DC__("<natural language query to fetch the statistic from Data Commons>") --> "<LLM generated statistic>"].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-rig-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 = 'What are some interesting trends in Sunnyvale spanning gender, age, race, immigration, health conditions, economic conditions, crime and education?'
13inputs = tokenizer(input_text, return_tensors='pt').to('cuda')
14
15outputs = model.generate(**inputs, max_new_tokens=4096)
16answer = tokenizer.batch_decode(outputs[:, inputs['input_ids'].shape[1]:], skip_special_tokens=True)[0].strip()
17print(answer)Sunnyvale, CA has seen significant progress in gender, age, and educational demographics in recent years. Here's a breakdown:
**Gender:**
* **Overall:** Sunnyvale has a relatively equal gender distribution, with a slight skew towards male residents.
* **Recent Shifts:**
* **2010-2020:** The female population in Sunnyvale has been steadily increasing, reaching a [__DC__("what was the percentage of females in Sunnyvale, CA in 2020?") --> "51.6%"] majority in 2020. This is largely due to its proximity to Silicon Valley and the increasing number of women working in tech.
* **Age:** Sunnyvale has a relatively young population, with a median age of around [__DC__("what was the median age of residents in Sunnyvale, CA in 2020?") --> "35"]. This reflects the dominance of the tech industry, which tends to favor younger demographics.
* **Immigration:** Sunnyvale has a significant immigrant population, with many residents hailing from countries in Central and South America, Asia, and the Middle East.
**Age:**
* **Recent Shifts:**
* **2010-2020:** Sunnyvale has seen a slight decrease in the median age, driven by a competitive job market and a desire for better work-life balance.
* **Aging Population:** While Sunnyvale has a young population overall, it's also aging. This means the proportion of older residents is increasing, which can put pressure on healthcare and social services.
**Race & Ethnicity:**
* **Majority-Minority City:** Sunnyvale is a majority-minority city, meaning that no single racial or ethnic group constitutes a majority of the population.
* **Key Demographics:**
* **White:** [__DC__("what percentage of residents in Sunnyvale, CA are white in 2020?") --> "55.1%"]
* **Hispanic or Latino:** [__DC__("what percentage of residents in Sunnyvale, CA are hispanic or latino in 2020?") --> "30.6%"]
* **Asian:** [__DC__("what percentage of residents in Sunnyvale, CA are asian in 2020?") --> "16.8%"]
* **Black or African American:** [__DC__("what percentage of residents in Sunnyvale, CA are black or african american in 2020?") --> "3.6%"]
* **Other:** [__DC__("what percentage of residents in Sunnyvale, CA are classified as other race in 2020?") --> "0.5%"]
* **Trends & Issues:**
* **Tech Dominance:** Sunnyvale's proximity to tech jobs drives a younger, more diverse workforce.
* **Education & Income:**
A highly educated population in Sunnyvale translates to a highly skilled workforce, commanding higher salaries on average.
* **Racial & Ethnic Diversity:**
The city's commitment to diversity and inclusion is reflected in its demographics.
* **Aging Population:**
The aging population presents challenges for healthcare and social services, while a younger population puts pressure on schools and childcare.
**Economic Conditions:**
* **Low Unemployment Rate:** Sunnyvale consistently boasts a low unemployment rate, indicating a strong tech sector.
* **High Median Household Income:**
The median household income in Sunnyvale is significantly higher than the national average, driven by the high demand for skilled labor in the area.
* **Competitive Landscape:** Sunnyvale faces increasing competition for skilled workers and struggles with housing affordability and traffic congestion.
**Education Levels:**
* **High Percentage of Adults with Bachelor's Degree or Higher:**
A highly educated population is a key driver of the city's workforce and economy.
* **Emphasis on STEM Education & Innovation:**
Sunnyvale schools place a strong emphasis on STEM education and innovation, reflecting the region's tech-driven culture.
**Challenges:**
* **Gender Gap:**
The tech industry has a persistent gender gap, with women holding a smaller percentage of jobs than men.
* **Age Diversity:**
While Sunnyvale has a young population overall, it's important to ensure a balance of age groups in the workforce.
* **Immigration Policy:**
Immigration policy debates and enforcement can create uncertainty and hardship for immigrant communities.
**Resources:**
* **Sunnyvale Chamber of Commerce:** https://www.sunnyvalecoc.org/
* **City of Sunnyvale:** https://www.sunnyvale.ca.gov/
* **Stanford University:** https://www.stanford.edu/
**Note:**
These are just overarching trends. It's important to consult reliable sources like the U.S. Census Bureau and the Bureau of Labor Statistics for more detailed and up-to-date information.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)
8model_id = 'google/datagemma-rig-27b-it'
9tokenizer = AutoTokenizer.from_pretrained(model_id)
10model = AutoModelForCausalLM.from_pretrained(
11 model_id,
12 device_map='auto',
13 quantization_config=nf4_config,
14 torch_dtype=torch.bfloat16,
15)
16input_text = 'What are some interesting trends in Sunnyvale spanning gender, age, race, immigration, health conditions, economic conditions, crime and education?'
17inputs = tokenizer(input_text, return_tensors='pt').to('cuda')
18
19outputs = model.generate(**inputs, max_new_tokens=4096)
20answer = tokenizer.batch_decode(outputs[:, inputs['input_ids'].shape[1]:], skip_special_tokens=True)[0].strip()
21print(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}