Comments (3)
The instructions on the README.md will now work on an Apple M1. By default it runs the samples on the CPU but it should be easy to switch the API to choose the M1 GPU. We plan to add a flag to switch the backend from the sample scripts command line to make it easier.
from shark.
I have Conda 3.9x python and rustc compiler installed with curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Before running examples activate venv with:
source /Users/anush/github/dshark/shark.venv/bin/activate
(shark1.venv) (base) a@MacBook-Pro dshark % source /Users/anush/github/dshark/shark.venv/bin/activate
(shark.venv) (base) anush@MacBook-Pro dshark % python -m shark.examples.resnet50_script
load image from https://upload.wikimedia.org/wikipedia/commons/2/26/YellowLabradorLooking_new.jpg
torch.Size([1, 3, 224, 224])
Target triple found:arm64-apple-darwin21.5.0
The top 3 results obtained via shark_runner is:
[('Labrador retriever', 52.36594009399414), ('Chesapeake Bay retriever', 7.188111305236816), ('golden retriever', 5.128645420074463)]
The top 3 results obtained via torch is:
[('Labrador retriever', 52.36603546142578), ('Chesapeake Bay retriever', 7.188104152679443), ('golden retriever', 5.128644943237305)]
from shark.
Opened #31 for making backend switching easy from command line.
Please open a new issue if you run into any problems. We will be adding validated models in the tracker sheet on the first page.
from shark.
Related Issues (20)
- (Studio) RuntimeError: operator torchvision::nms does not exist @ 803a33d4 (current head) HOT 2
- SHARK Installation HOT 1
- SHARK Stable Release Tracker (12/2023) HOT 9
- No module Name brevitas_example_common
- Warnings after today's update
- Crash/error on 'stock' test gen HOT 2
- fail to convert qwen llama model to MLIR and vmfb. HOT 1
- Need to restart in between generations of higher resolution images HOT 1
- RESOURCE_EXHAUSTED when trying to use hires fix
- SDXL Error
- Sharkify Model UnetModel.forward() Arguments Error
- Input image masks on Image2Image does not seem to do anything HOT 1
- SHARK won't start or run without internet
- Error while installing rx570 don't know if it is because of the card or software issue please fix it
- LoRA models not showing up in dropdown
- System interrupts gets very high CPU followed by complete computer shutdown HOT 3
- Document for the compilation flow ?
- Enable llama2 benchmarking with Turbine HOT 1
- FP8 Support HOT 10
- (Shark-1.0) setup_venv.ps1 specifies a torch-mlir version that has dropped off the end of package index
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shark.