Better HN
topnewbestaskshowjobs
Log inSign up

323454

465 karma · joined Nov 12, 2015 (11y ago) · 159 submissions

tom at tensil dot ai
Submissions

comment 4y ago · link · parent

So far we've been focused on edge devices like the Zynq, Artix and Zynq Ultrascale+ families. Tensil certainly works on larger devices but it's not as optimized there as we'd like it. If that's interesting to you, I'd love to talk and understand your use case in more depth.

The Intel FPGA side is interesting, as you say there are fewer projects targeting their technologies for ML use cases. We haven't tested support for their boards yet, but there is nothing in our generated RTL that is exclusive to Xilinx. The only thing we'd need to add is new drivers for their platforms.

comment 4y ago · link · parent

Sorry if this was unclear - in a datacenter use case you are right, but for an edge deployment, you will usually need to quantize, prune or compress your ML model to get it working as fast as you'd like on a sufficiently small CPU/GPU. Compared with running your ML model unchanged on those platforms, Tensil can run with the performance ranges listed above. You can also quantize and use Tensil too!

comment 4y ago · link · parent

FINN is a very cool project, but usually requires big changes to your model in order to work, e.g. quantizing down to 1 or 2 bit weights. It also works best on large FPGAs which are unsuitable for edge deployments. Tensil works out of the box with any model (no need to quantize / compress) and on small edge FPGAs.

comment 4y ago · link · parent

Cheers, and great question! FPGAs are pretty amazing devices, but one thing that's been holding them back is how difficult they have been to work with. Typically to actually make use of an FPGA you'd need to have an FPGA expert and an embedded software engineer on your team, along with all the requisite tools and materials.

That has started to change dramatically in the last decade, with open source FPGA toolchains like yosys, runtimes like the PYNQ framework and RTL generator tools like Tensil being developed. When you put these things together, working with FPGAs starts to become as easy as using any other compute platform. For that reason, I think there are lots of applications involving FPGAs that will soon be invented to take advantage of this trend. One could speculate that the reason Intel and AMD are buying up FPGA vendors is because they see the potential there.

As far as head-to-head comparisons go, as long as you're running the workload it was designed for in the environment it was designed for, an ASIC will always be the best possible perf per watt. The question is what happens when you go outside those bounds. Can you take your model, swap out a layer, and have it run just as fast on your Coral or NPU? Probably not, at least right now. But with Tensil, you can re-run your architecture search to find the best accelerator, and take advantage of it right away.

comment 4y ago · link · parent

I don't have hard numbers at hand, but I'd estimate something like an order of magnitude improvement for using DSP for multiplication vs not. If they're available on the fabric, you'll definitely want to use them! If this is an experiment you want to run, I'd be very happy to help you figure out how to do it.

comment 4y ago · link · parent

Thanks for pointing this out! The UP5K does look promising.

comment 4y ago · link · parent

Thanks! The general answer is that it depends on your model and on which FPGA platform we're talking about, but in a head-to-head benchmark test you'll find results in the ballpark of 2-10x CPU and 0.5-2x GPU. As you point out, the power and cost are big differentiators. The other thing to consider is (as another commenter mentioned) that usually inference on CPU or GPU will require you to do some model quantization or compression, which can degrade model accuracy. Tensil can give you a way around that dilemma, so that you can have great performance without sacrificing accuracy.

comment 4y ago · link · parent

Just saw your edit re: model compression. One thing that Tensil can do is help you avoid the need to quantize or compress your model entirely! For example, we've found that using a 16-bit fixed point numeric data type preserves almost all the model accuracy while not sacrificing performance thanks to the huge amount of parallelism available on FPGA.

The broader point is that Tensil is extremely flexible, so you can try out lots of different accelerator configurations to find the one that works best for your ML model. Think of it as optimizing the hardware first, then the software if needed.

We're actually working on a tool to manage and automate this hardware architecture search - watch this space!

comment 4y ago · link · parent

Thank you for the kind words! Just to clarify, the core technology here is free and open source, anyone can use it right now for free. We do have commercialization plans in addition - we may explore things like additional paid features for enterprise use or paid tiers of extra support.

Regarding LSTMs, yes. We're aiming to support all machine learning model architectures: do you have any particular models you're interested in that we should be prototyping with?

For CGRAs, we don't have any immediate plans to explicitly support them. What kind of use case do you have in mind? Generally, any platform that can implement a blob of generated RTL should be something we can work with quite easily.

comment 4y ago · link · parent

That's excellent - feel free to join our Discord if you'd like to brainstorm ideas or get help choosing models and boards https://discord.gg/TSw34H3PXr

comment 4y ago · link · parent

It depends on the model, yes. Here are some examples in the benchmarks section of our docs: https://www.tensil.ai/docs/reference/benchmarks/

We haven't specifically tested on any ICE40 FPGAs yet - if this is something that you'd really like to see, let me know! Taking a look at the lineup, the ICE40 LP8K and LP4K would be suitable for running a very small version of the Tensil accelerator. You'd want to run a small model in order to get reasonable performance.

Generally speaking, FPGAs with some kind of DSP (digital signal processing) capability will work best, since they can most efficiently implement the multiply-accumulate operations needed.

comment 4y ago · link · parent

You absolutely can use it in a data centre. You can even tape out an ASIC using these designs! Currently we've done most of our prototyping with edge FPGA platforms but if you want to try other platforms we'd love to help you get started. You can email me at tom@tensil.ai or use the contact methods on the website.

comment 4y ago · link · parent

Great question - TVM / OctoML are a great option if you have an off-the-shelf ML model and off-the-shelf hardware. Tensil is different in that you can actually customize the accelerator hardware itself, allowing you to get the best trade-off of performance / accuracy / power usage / cost given your particular ML workload. This is especially useful if you want to avoid degrading the accuracy of your models (e.g. through quantization) to achieve performance targets.

14.

Show HN: Open source machine learning inference accelerators on FPGA(tensil.ai ↗)

57 points · by tdba · 4y ago · 1 comment

comment 4y ago · link · parent

Do you have a website / product page?

comment 4y ago · link · parent

There is also what is thought to be a Buddha found at Oseberg which may have been produced in England.

https://en.wikipedia.org/wiki/Oseberg_Ship

comment 4y ago · link · parent

Even if you agree with Taleb's arguments in that article, he still admits that low IQ is correlated with low wealth, low income and other such social measures of low success. So the hypothesis that IQ may be declining should still be concerning, since more and more people will be in that low IQ range predictive of low success.

comment 4y ago · link · parent

I'm not GP but as I understand it most religions contain an idea that selflessness is the highest good that a person can attain. Further they often maintain that only by becoming truly selfless can you make your spirit one with God (I don't specifically mean the Christian God here, just the concept of God). Becoming truly self-less literally means eliminating the self and its wants and impulses (really what is meant by this is typically something like the ego). Such an elimination has been called a "dying to self" or a mortification.

I will say that in my experience acting in selfless ways is indeed the most spiritually fulfilling thing you can do, regardless of your specific theology. The paradox is that you have to really be selfless: if you have any expectation of a reward (even a spiritual one) then you are in fact still acting for your self. Consequently the only true source of selflessness is love for others that exceeds love for yourself. Cultivate such love and you can't go wrong.

comment 4y ago · link · parent

How does this square with intelligence studies of deaf people? Despite being half as likely to complete tertiary education, the deaf exhibit the same IQ distribution as the general population. Are they doing something else that is just as effective as education at increasing IQ?

> In sum, the implication of the research of the last fifty years which compared the IQ of the deaf with the hearing and of subgroups of deaf children indicates that when there are no complicating multiple handicaps, the deaf and hard-of-hearing function at approximately the same IQ level on performance intelligence tests as do the hearing. [1]

[1] https://academic.oup.com/jdsde/article/10/3/225/413353

comment 4y ago · link · parent

I agree with the prescription to stay off weaponized social propaganda platforms and focus on your local community, but I don't see how you can ask people to blindly trust the CIA. Too many misdeeds to count.

- Fabricating justification for war (Vietnam, Iraq) - Fabricating evidence of treason by a sitting President (Trump-Russia) - Overthrowing democratically elected governments (e.g. Iran) - Starting civil wars (e.g. Nicaragua) - Assassinating thousands of people, often with collateral killing of innocents - And drugs drugs drugs: https://en.wikipedia.org/wiki/Allegations_of_CIA_drug_traffi...

Ultimately, do we live in a better world thanks to the CIA? From where I sit, I'd need a lot of convincing to believe that.

comment 5y ago · link · parent

> but in those cases i dont think its entirely fair to expect schools to fully accommodate such outliers

This sentiment would equally support removing special education programs for students with learning disabilities, yet those are not being called into question.

comment 5y ago · link · parent

I'll second this: how can I hire you? Or more generally how would you suggest going about finding a workflow consultant?

comment 5y ago · link · parent

This already exists and it doesn't quite work. School funding and outcomes are less well correlated than you might expect. Some of the worst performing schools and districts are also the best funded. The top causal factor appears to be parental involvement: highly involved parents in even poorly funded schools is better than uninvolved parents in well funded schools.

comment 5y ago · link · parent

Prizes are incentives. AIs can respond to incentives just as we can, but for now a Nobel prize is a type of incentive that only humans care about. Unless the AI shows that it cares about receiving a Nobel, the prize should go to the humans who made the AI.

25.

Tensil (YC S19) Is Hiring FPGA Engineers(ycombinator.com ↗)

by 323454 · 5y ago

comment 5y ago · link · parent

No one cares what outsiders think when they are being assaulted on their walk home from work. If you want justice you must first create order.

In addition, it's not like these people don't have sympathy for the plight of the poor: they voted to spend vast sums on tax money trying to fix the root cause of the problem. It's not their fault that these efforts are failing.

comment 5y ago · link · parent

LA city budget, not California state. The amount spent is so high that you could just give every homeless person in LA $2000 every month and it would be less expensive.

comment 5y ago · link · parent

This is a false dichotomy, but what's worse is that social programs are already heavily funded in all the major West coast cities. For example, LA spends over half a billion dollars (yes, billion with a B) on services for the homeless every year, to very little effect. It's not irrational for someone (even someone who advocates for those very programs and services) to look at the full situation and conclude that the best available option is to just throw in the towel and hire private security.

29.

The Unreasonable Effectiveness of Multiple Dispatch(m.youtube.com ↗)

2 points · by 323454 · 5y ago · discuss

123456