mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-25 21:11:11 +08:00
44 lines
2.8 KiB
Markdown
44 lines
2.8 KiB
Markdown
# Local models
|
|
# Local models
|
|
The two websites benchmark are:
|
|
- Example 1: https://perinim.github.io/projects
|
|
- Example 2: https://www.wired.com (at 17/4/2024)
|
|
|
|
Both are strored locally as txt file in .txt format because in this way we do not have to think about the internet connection
|
|
|
|
The time is measured in seconds
|
|
|
|
The model runned for this benchmark is Mistral on Ollama with nomic-embed-text
|
|
|
|
| Hardware | Model | Example 1 | Example 2 |
|
|
| ---------------------- | --------------------------------------- | --------- | --------- |
|
|
| Macbook 14' m1 pro | Mistral on Ollama with nomic-embed-text | 30.54s | 35.76s |
|
|
| Macbook m2 max | Mistral on Ollama with nomic-embed-text | | |
|
|
| Macbook 14' m1 pro<br> | Llama3 on Ollama with nomic-embed-text | 27.82s | 29.986s |
|
|
| Macbook m2 max<br> | Llama3 on Ollama with nomic-embed-text | | |
|
|
|
|
|
|
**Note**: the examples on Docker are not runned on other devices than the Macbook because the performance are to slow (10 times slower than Ollama).
|
|
# Performance on APIs services
|
|
### Example 1: personal portfolio
|
|
**URL**: https://perinim.github.io/projects
|
|
**Task**: List me all the projects with their description.
|
|
|
|
| Name | Execution time (seconds) | total_tokens | prompt_tokens | completion_tokens | successful_requests | total_cost_USD |
|
|
| --------------------------- | ------------------------ | ------------ | ------------- | ----------------- | ------------------- | -------------- |
|
|
| gpt-3.5-turbo | 24.21 | 1892 | 1802 | 90 | 1 | 0.002883 |
|
|
| gpt-4-turbo-preview | 6.614 | 1936 | 1802 | 134 | 1 | 0.02204 |
|
|
| Grooq with nomic-embed-text | 6.71 | 2201 | 2024 | 177 | 1 | 0 |
|
|
|
|
### Example 2: Wired
|
|
**URL**: https://www.wired.com
|
|
**Task**: List me all the articles with their description.
|
|
|
|
| Name | Execution time (seconds) | total_tokens | prompt_tokens | completion_tokens | successful_requests | total_cost_USD |
|
|
| --------------------------- | ------------------------ | ------------ | ------------- | ----------------- | ------------------- | -------------- |
|
|
| gpt-3.5-turbo | | | | | | |
|
|
| gpt-4-turbo-preview | | | | | | |
|
|
| Grooq with nomic-embed-text | | | | | | |
|
|
|
|
|