119 karma · joined Apr 18, 2017 (9y ago) · 45 submissions
1.
The missing guide to the H100 GPU market(blog.lepton.ai ↗)
3 points · by jiayq84 · 2y ago · discuss
comment 2y ago · link · parent
There are clusters of GPUs sitting idle because companies don't know how to use them. It's embarrassing to resell them too because that makes the images look bad to VCs, but secondary market is slowly happening.
Essentially, people want a PaaS or SaaS on top of the barebone machines.
For example, for the last couple months we were helping a customer to fully utilize their hundreds-of-card cluster. Their IaaS provider was new to the field. So we literally helped both sides to (1) understand infiniband and nccl and training code and stuff; (2) figure out control plane traffic; (3) built accelerated storage layer for training; (4) all kinds of subtle signals that needs attention. Do you know that a GPU can appear OK in nvidia-smi, but still encounter issues when you actually run a cuda or nccl kernel? That needs care. (5) fast software runtimes, like LLM runtime, finetuning script, and many others.
So I think AI PaaS and SaaS is going to be a very valuable (and big) market, after people come out of the frenzy of "grabbing gpus" - and now we need to use them efficiently.
comment 2y ago · link · parent
comment 2y ago · link · parent
You can try plug in different search engines or even your own elastic interface, write different LLM prompts, pick different LLM models - a lot of ablation studies that could be tried out.
We appreciate your interest and happy Friday!
5.
Show HN: Conversational search in less than 500 lines of Python(search.lepton.run ↗)
6 points · by jiayq84 · 2y ago · 2 comments
comment 2y ago · link · parent
7.
Structural Decoding (Function Calling) for All Open LLMs(leptonai.medium.com ↗)
6 points · by jiayq84 · 2y ago · 1 comment
comment 3y ago · link · parent
lep photon run -n sdxl -m hf:stabilityai/stable-diffusion-xl-base-1.0 --local
It's really about how to productize a wide range of models as easy as possible.
comment 3y ago · link · parent
we'll put a link on our homepage.
In short - we do not collect, record, or log any of your prompts and responses. They are computed in memory, returned and discarded on the fly.
comment 3y ago · link · parent
https://github.com/leptonai/examples/blob/main/advanced/whis...
I definitely agree that for a fixed use case, building a docker once and for all is probably the simplest and best approach. However, it quickly gets more complex and out of hand.
Also the basic plan is free for independent developers. You don't need to pay more than as if you were using EC2 instances, but with the platform convenience - we definitely hope it's worth it!
comment 3y ago · link · parent
pip install -U leptonai
lep photon run -n sdxl -m hf:stabilityai/stable-diffusion-xl-base-1.0 --local
And you have a local OpenAPI server that runs it! Go to http://0.0.0.0:8080/docs, or use your favorite OpenAPI client.
We've been building AI API services using such tools ourselves. The easiest way to try out Lepton is to head to https://lepton.ai/playground and use our API service for popular models: Stable Diffusion, LLaMA, WhisperX, and other interesting showcases
We are proud of our performance. For example, we have probably the fastest LLaMA 7B and 70B model APIs, and it costs $0.8 to run 1 million tokens inference - we believe it's the most affordable one in the market. In addition, during the open beta phase, calling these services is free when you sign up for the Lepton AI platform.
Under the hood, we wrote a platform to allow you to run things easily on the cloud with ease. For example, if you find Pygmalion to be a great conversation model but you don't have a GPU, use lepton's Remote() capability to launch a service:
from leptonai import Remote
pygmalion = Remote("hf:PygmalionAI/pygmalion-2-7b", resource_shape="gpu.a10")
Wait a few minutes for the model to be downloaded and run, and you can now use it as if it were a standard python function:
print(pygmalion.run(inputs="Once upon a time", max_new_tokens=128))
If you are interested in the operational details, you can find fine-grained controls at https://dashboard.lepton.ai/ as a fully managed platform - we also support BYOC (bring your own compute) if you are an enterprise needing more autonomy over infrastructure.
17.
Show HN: Running LLMs in one line of Python without Docker(lepton.ai ↗)
68 points · by jiayq84 · 3y ago · 26 comments
comment 6y ago · link · parent
Not to mention that nvidia has thrown numerous open source efforts over the years. If SR was under the impression that 2017 was a dry year for open source deep learning vision systems - I can understand why it didn’t do very well technology wise.
Disclaimer: have been doing deep learning open source and research over the years. Have touched all major frameworks in the market.
comment 6y ago · link · parent
Data is the problem. Everyone has the algorithm but not enough people have data (especially labeled ones)
comment 9y ago · link · parent
comment 9y ago · link · parent
We chose protobuf mainly due to a good caffe adoption story and also the track record of it being compatible with many platforms (mobile, server, embedded, etc). We actually looked at thrift - which is Facebook owned - and it is equally nice, but our final decision was mainly to minimize the switching overhead for existing users such as Caffe and TensorFlow.
To be honest, protobuf is indeed a little bit hard to install (especially if you have python and c++ version differences). Would definitely be interested in taking a look at possible solutions - serialization format and the model standard is mor e or less orthogonal, so one may see a world where we can convert different serialization formats (JSON <-> protobuf as an overly simplified example)
comment 9y ago · link · parent
- not using extensions, as 3 does not support it - not using map, as 2 does not support it
and we basically landed on restricting ourselves to use the common denominator among all post-2.5 versions. Wondering if this sounds reasonable to you - always great to hear the original author's advice.
Plus, I am wondering if there are recommended ways of reducing protobuf runtime size, we use protobuf-lite but if there are any further wins it would be definitely nice for memory and space constrained problems.
comment 9y ago · link · parent
// Note [Protobuf compatibility] // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Based on experience working with downstream vendors, we generally can't // assume recent versions of protobufs. This means that we do not use any // protobuf features that are only available in proto3. // // Here are the most notable contortions we have to carry out to work around // these limitations: // // - No 'map' (added protobuf 3.0). We instead represent mappings as lists // of key-value pairs, where order does not matter and duplicates // are not allowed.