The varieties that are made into tempeh and similar products are specifically bred for that use, as I understand it. Wild lupine beans in general are mildly/moderately toxic. The same thing that gives them the bitter taste is dangerous in large quantities, so they have to be prepared carefully to reduce it.
However it is a very beautiful plant and the flowers are good for insects like butterflies!