julien-c HF staff commited on
Commit
1fd7c45
1 Parent(s): e46072f

first commit

Browse files
docs/components/timeline.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as Plot from "npm:@observablehq/plot";
2
+
3
+ export function timeline(events, {width, height} = {}) {
4
+ return Plot.plot({
5
+ width,
6
+ height,
7
+ marginTop: 30,
8
+ x: {nice: true, label: null, tickFormat: ""},
9
+ y: {axis: null},
10
+ marks: [
11
+ Plot.ruleX(events, {x: "year", y: "y", markerEnd: "dot", strokeWidth: 2.5}),
12
+ Plot.ruleY([0]),
13
+ Plot.text(events, {x: "year", y: "y", text: "name", lineAnchor: "bottom", dy: -10, lineWidth: 10, fontSize: 12})
14
+ ]
15
+ });
16
+ }
docs/data/events.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {"name": "Sputnik 1", "year": 1957, "y": 10},
3
+ {"name": "Apollo 11", "year": 1969, "y": 20},
4
+ {"name": "Viking 1 and 2", "year": 1975, "y": 30},
5
+ {"name": "Space Shuttle Columbia", "year": 1981, "y": 40},
6
+ {"name": "Hubble Space Telescope", "year": 1990, "y": 50},
7
+ {"name": "ISS Construction", "year": 1998, "y": 60}
8
+ ]
docs/index.md CHANGED
@@ -1,111 +1,38 @@
1
  ---
2
- theme: alt
3
  toc: false
4
  ---
5
 
6
- <style>
7
 
8
- .hero {
9
- display: flex;
10
- flex-direction: column;
11
- align-items: center;
12
- font-family: var(--sans-serif);
13
- margin: 4rem 0 8rem;
14
- text-wrap: balance;
15
- text-align: center;
16
- }
17
 
18
- .hero h1 {
19
- margin: 2rem 0;
20
- max-width: none;
21
- font-size: 14vw;
22
- font-weight: 900;
23
- line-height: 1;
24
- background: linear-gradient(30deg, var(--theme-foreground-focus), currentColor);
25
- -webkit-background-clip: text;
26
- -webkit-text-fill-color: transparent;
27
- background-clip: text;
28
- }
29
 
30
- .hero h2 {
31
- margin: 0;
32
- max-width: 34em;
33
- font-size: 20px;
34
- font-style: initial;
35
- font-weight: 500;
36
- line-height: 1.5;
37
- color: var(--theme-foreground-muted);
38
- }
39
 
40
- @media (min-width: 640px) {
41
- .hero h1 {
42
- font-size: 90px;
43
- }
44
- }
45
 
46
- </style>
 
 
47
 
48
- <div class="hero">
49
- <h1>Hello, Observable Framework</h1>
50
- <h2>Welcome to your new project! Edit&nbsp;<code style="font-size: 90%;">docs/index.md</code> to change this page.</h2>
51
- <a href="https://observablehq.com/framework/getting-started" target="_blank">Get started<span style="display: inline-block; margin-left: 0.25rem;">↗︎</span></a>
52
- </div>
53
 
54
- <div class="grid grid-cols-2" style="grid-auto-rows: 504px;">
55
- <div class="card">${
56
- resize((width) => Plot.plot({
57
- title: "Your awesomeness over time 🚀",
58
- subtitle: "Up and to the right!",
59
- width,
60
- y: {grid: true, label: "Awesomeness"},
61
- marks: [
62
- Plot.ruleY([0]),
63
- Plot.lineY(aapl, {x: "Date", y: "Close", tip: true})
64
- ]
65
- }))
66
- }</div>
67
- <div class="card">${
68
- resize((width) => Plot.plot({
69
- title: "How big are penguins, anyway? 🐧",
70
- width,
71
- grid: true,
72
- x: {label: "Body mass (g)"},
73
- y: {label: "Flipper length (mm)"},
74
- color: {legend: true},
75
- marks: [
76
- Plot.linearRegressionY(penguins, {x: "body_mass_g", y: "flipper_length_mm", stroke: "species"}),
77
- Plot.dot(penguins, {x: "body_mass_g", y: "flipper_length_mm", stroke: "species", tip: true})
78
- ]
79
- }))
80
- }</div>
81
- </div>
82
 
83
- ---
 
 
 
 
 
 
84
 
85
- ## Next steps
86
 
87
- Here are some ideas of things you could try…
88
 
89
- <div class="grid grid-cols-4">
90
- <div class="card">
91
- Chart your own data using <a href="https://observablehq.com/framework/lib/plot"><code>Plot</code></a> and <a href="https://observablehq.com/framework/javascript/files"><code>FileAttachment</code></a>. Make it responsive using <a href="https://observablehq.com/framework/javascript/display#responsive-display"><code>resize</code></a>.
92
- </div>
93
- <div class="card">
94
- Create a <a href="https://observablehq.com/framework/routing">new page</a> by adding a Markdown file (<code>whatever.md</code>) to the <code>docs</code> folder.
95
- </div>
96
- <div class="card">
97
- Add a drop-down menu using <a href="https://observablehq.com/framework/javascript/inputs"><code>Inputs.select</code></a> and use it to filter the data shown in a chart.
98
- </div>
99
- <div class="card">
100
- Write a <a href="https://observablehq.com/framework/loaders">data loader</a> that queries a local database or API, generating a data snapshot on build.
101
- </div>
102
- <div class="card">
103
- Import a <a href="https://observablehq.com/framework/javascript/imports">recommended library</a> from npm, such as <a href="https://observablehq.com/framework/lib/leaflet">Leaflet</a>, <a href="https://observablehq.com/framework/lib/dot">GraphViz</a>, <a href="https://observablehq.com/framework/lib/tex">TeX</a>, or <a href="https://observablehq.com/framework/lib/duckdb">DuckDB</a>.
104
- </div>
105
- <div class="card">
106
- Ask for help, or share your work or ideas, on the <a href="https://talk.observablehq.com/">Observable forum</a>.
107
- </div>
108
- <div class="card">
109
- Visit <a href="https://github.com/observablehq/framework">Framework on GitHub</a> and give us a star. Or file an issue if you’ve found a bug!
110
- </div>
111
- </div>
 
1
  ---
 
2
  toc: false
3
  ---
4
 
5
+ # Evolution of the Hugging Face Hub
6
 
7
+ ### Powered by Observable Framework
 
 
 
 
 
 
 
 
8
 
9
+ Let's visualize how the Hub is evolving those last few years.
 
 
 
 
 
 
 
 
 
 
10
 
 
 
 
 
 
 
 
 
 
11
 
12
+ ## Models and datasets
 
 
 
 
13
 
14
+ ```js
15
+ import {timeline} from "./components/timeline.js";
16
+ ```
17
 
18
+ ```js
19
+ const events = FileAttachment("./data/events.json").json();
20
+ ```
 
 
21
 
22
+ ```js
23
+ timeline(events, {height: 300})
24
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
+ ## LLM generated description based on data above
27
+
28
+ The evolution of open source models and datasets on the Hugging Face Hub reflects a significant shift in the landscape of machine learning and artificial intelligence. Initially, the Hugging Face Hub started as a repository for Natural Language Processing (NLP) models, primarily focusing on the Transformer architecture, which has been pivotal in advancing AI research and applications. The hub was known for hosting models such as BERT, GPT, and their variants, facilitating easy access for researchers and developers to state-of-the-art models.
29
+
30
+ Over time, the Hugging Face Hub expanded its scope beyond NLP to include a wide variety of models across different domains of AI, such as computer vision, audio processing, and multi-modal AI. This expansion was driven by the community's growing demand for a centralized platform where researchers and developers could share, discover, and implement AI models across different fields.
31
+
32
+ The introduction of datasets on the Hugging Face Hub marked another significant milestone. It provided a unified platform for sharing and accessing datasets, which are crucial for training and benchmarking AI models. This feature addressed a common challenge in the AI community—the difficulty of finding high-quality, relevant datasets—by allowing users to easily search for and download datasets for their specific needs.
33
 
34
+ The Hugging Face Hub has also embraced an open-source ethos, encouraging collaboration and transparency in AI development. Users can contribute their own models and datasets, participate in discussions, and improve existing resources through direct interaction and feedback. This collaborative environment has fostered innovation and accelerated the pace of AI research and development.
35
 
36
+ Moreover, the platform has integrated tools and APIs to facilitate the deployment of models, making it easier for developers to integrate AI into applications. The Hugging Face Hub's emphasis on interoperability, with support for various machine learning frameworks like TensorFlow, PyTorch, and JAX, ensures that the models and datasets are accessible to a broad audience.
37
 
38
+ In conclusion, the evolution of the Hugging Face Hub reflects the growing importance of open-source models and datasets in the AI community. It has become a key resource for researchers, developers, and companies, promoting accessibility, collaboration, and innovation in AI.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
observablehq.config.ts CHANGED
@@ -1,7 +1,7 @@
1
  // See https://observablehq.com/framework/config for documentation.
2
  export default {
3
  // The project’s title; used in the sidebar and webpage titles.
4
- title: "Observable Huggingface2",
5
 
6
  // The pages and sections in the sidebar. If you don’t specify this option,
7
  // all pages will be listed in alphabetical order. Listing pages explicitly
 
1
  // See https://observablehq.com/framework/config for documentation.
2
  export default {
3
  // The project’s title; used in the sidebar and webpage titles.
4
+ title: "Observable HuggingFace",
5
 
6
  // The pages and sections in the sidebar. If you don’t specify this option,
7
  // all pages will be listed in alphabetical order. Listing pages explicitly
package-lock.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "name": "observable-huggingface2",
3
  "lockfileVersion": 3,
4
  "requires": true,
5
  "packages": {
 
1
  {
2
+ "name": "observable-huggingface",
3
  "lockfileVersion": 3,
4
  "requires": true,
5
  "packages": {