Skip to content

Commit 0ff411a

Browse files
authored
fix: Fix results dashboard (#6)
* fix: Update and fix extra results dashboard * fix: docs and versions
1 parent 0d9fa51 commit 0ff411a

File tree

15 files changed

+1362
-1774
lines changed

15 files changed

+1362
-1774
lines changed

.gitignore

Lines changed: 1 addition & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,10 @@
1-
/target
2-
# Created by https://www.toptal.com/developers/gitignore/api/macos,intellij,rust
3-
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,intellij,rust
4-
5-
### Intellij ###
6-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
7-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8-
9-
# User-specific stuff
10-
.idea/**/workspace.xml
11-
.idea/**/tasks.xml
12-
.idea/**/usage.statistics.xml
13-
.idea/**/dictionaries
14-
.idea/**/shelf
15-
16-
# AWS User-specific
17-
.idea/**/aws.xml
18-
19-
# Generated files
20-
.idea/**/contentModel.xml
21-
22-
# Sensitive or high-churn files
23-
.idea/**/dataSources/
24-
.idea/**/dataSources.ids
25-
.idea/**/dataSources.local.xml
26-
.idea/**/sqlDataSources.xml
27-
.idea/**/dynamic.xml
28-
.idea/**/uiDesigner.xml
29-
.idea/**/dbnavigator.xml
30-
31-
# Gradle
32-
.idea/**/gradle.xml
33-
.idea/**/libraries
34-
35-
# Gradle and Maven with auto-import
36-
# When using Gradle or Maven with auto-import, you should exclude module files,
37-
# since they will be recreated, and may cause churn. Uncomment if using
38-
# auto-import.
39-
# .idea/artifacts
40-
# .idea/compiler.xml
41-
# .idea/jarRepositories.xml
42-
# .idea/modules.xml
43-
# .idea/*.iml
44-
# .idea/modules
45-
# *.iml
46-
# *.ipr
47-
48-
# CMake
49-
cmake-build-*/
50-
51-
# Mongo Explorer plugin
52-
.idea/**/mongoSettings.xml
53-
54-
# File-based project format
55-
*.iws
56-
57-
# IntelliJ
58-
out/
59-
60-
# mpeltonen/sbt-idea plugin
61-
.idea_modules/
62-
63-
# JIRA plugin
64-
atlassian-ide-plugin.xml
65-
66-
# Cursive Clojure plugin
67-
.idea/replstate.xml
68-
69-
# SonarLint plugin
70-
.idea/sonarlint/
71-
72-
# Crashlytics plugin (for Android Studio and IntelliJ)
73-
com_crashlytics_export_strings.xml
74-
crashlytics.properties
75-
crashlytics-build.properties
76-
fabric.properties
77-
78-
# Editor-based Rest Client
79-
.idea/httpRequests
80-
81-
# Android studio 3.1+ serialized cache file
82-
.idea/caches/build_file_checksums.ser
83-
84-
### Intellij Patch ###
85-
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
86-
87-
# *.iml
88-
# modules.xml
89-
# .idea/misc.xml
90-
# *.ipr
91-
92-
# Sonarlint plugin
93-
# https://plugins.jetbrains.com/plugin/7973-sonarlint
94-
.idea/**/sonarlint/
95-
96-
# SonarQube Plugin
97-
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
98-
.idea/**/sonarIssues.xml
99-
100-
# Markdown Navigator plugin
101-
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
102-
.idea/**/markdown-navigator.xml
103-
.idea/**/markdown-navigator-enh.xml
104-
.idea/**/markdown-navigator/
105-
106-
# Cache file creation bug
107-
# See https://youtrack.jetbrains.com/issue/JBR-2257
108-
.idea/$CACHE_FILE$
109-
110-
# CodeStream plugin
111-
# https://plugins.jetbrains.com/plugin/12206-codestream
112-
.idea/codestream.xml
113-
114-
# Azure Toolkit for IntelliJ plugin
115-
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
116-
.idea/**/azureSettings.xml
117-
118-
### macOS ###
119-
# General
120-
.DS_Store
121-
.AppleDouble
122-
.LSOverride
123-
124-
# Icon must end with two \r
125-
Icon
126-
127-
128-
# Thumbnails
129-
._*
130-
131-
# Files that might appear in the root of a volume
132-
.DocumentRevisions-V100
133-
.fseventsd
134-
.Spotlight-V100
135-
.TemporaryItems
136-
.Trashes
137-
.VolumeIcon.icns
138-
.com.apple.timemachine.donotpresent
139-
140-
# Directories potentially created on remote AFP share
141-
.AppleDB
142-
.AppleDesktop
143-
Network Trash Folder
144-
Temporary Items
145-
.apdisk
146-
147-
### macOS Patch ###
148-
# iCloud generated files
149-
*.icloud
150-
151-
### Rust ###
152-
# Generated by Cargo
153-
# will have compiled files and executables
1541
debug/
1552
target/
156-
157-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
158-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
1593
Cargo.lock
160-
161-
# These are backup files generated by rustfmt
1624
**/*.rs.bk
163-
164-
# MSVC Windows builds of rustc generate these, which store debugging information
1655
*.pdb
6+
__pycache__/
1667

167-
# End of https://www.toptal.com/developers/gitignore/api/macos,intellij,rust
168-
169-
.idea
1708
*.json
1719
*.txt
17210
results

Cargo.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
[package]
22
name = "inference-benchmarker"
3-
version = "0.1.0"
3+
version = "1.0.0"
44
edition = "2021"
5+
authors = ["Hugo Larcher <[email protected]>"]
6+
repository = "https://github.com/huggingface/inference-benchmarker"
7+
readme = "README.md"
8+
license = "Apache-2.0"
59

610
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
711

@@ -22,7 +26,7 @@ async-trait = "0.1.82"
2226
reqwest = { version = "0.12.7", features = ["json"] }
2327
tokio-stream = "0.1.16"
2428
strum_macros = "0.26.4"
25-
clap = { version = "4.5.17", features = ["derive","env"] }
29+
clap = { version = "4.5.17", features = ["derive", "env"] }
2630
humantime = "2.1.0"
2731
ratatui = { version = "0.28.1", features = ["all-widgets"] }
2832
crossterm = "0.28.1"
@@ -38,3 +42,9 @@ uuid = { version = "1.11.0", features = ["v4", "fast-rng"] }
3842

3943
[build-dependencies]
4044
vergen-gitcl = { version = "1.0.1" }
45+
46+
[[bin]]
47+
name = "inference-benchmarker"
48+
path = "src/main.rs"
49+
test = false
50+
bench = false

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ MODEL=meta-llama/Llama-3.1-8B-Instruct
6060
HF_TOKEN=<your HF READ token>
6161

6262
docker run --gpus all --shm-size 1g -p 8080:80 -e "HF_TOKEN=$HF_TOKEN" \
63-
ghcr.io/huggingface/text-generation-inference:2.3.1 --model-id $MODEL
63+
ghcr.io/huggingface/text-generation-inference:3.2.1 --model-id $MODEL
6464
```
6565

6666
**vLLM**
@@ -230,7 +230,7 @@ Slurm example is provided in `extra/slurm`.
230230
## Visualize the results
231231

232232
You can use the provided Gradio app to quickly visualize the results.
233-
Considering that JSON results are in `/path/to/results/dir`:
233+
Considering that JSON results files are in `/path/to/results/dir`:
234234
```shell
235235
$ poetry install
236236
$ cd extra/dashboard

0 commit comments

Comments
 (0)