Lain
AI & ML interests
Articles
Organizations
not-lain's activity
for duplicating models and datasets, you can use the following space developed by
@osanseviero
https://huggingface.co/spaces/huggingface-projects/repo_duplicator
Thanks a lot for the feedback, I will relay your findings to the team, in the meantime feel free to flag any posts that you find as a spam
Thanksiez ❤️
Welp It means I have made lots of cool stuff and I am an honor member 🤗
the bug is in Line 404
- Bookmarking blogposts into our collections (would love to reread some of these blogposts or store them somewhere)
- Give a person editing access to one of my repos without creating an organization
- Add search by custom tags [optional + low priority]
- Huggingface workflows + maybe create a blogpost about it, it would be interesting what the community will create
- Implement @cfahlgren1 's https://huggingface.co/spaces/cfahlgren1/my-heatmap in all user accounts
- Maybe allow people to add a README to their own user accounts' homepage
- dms
🤗 You can try the model at ZhengPeng7/BiRefNet
📈 model shows impressive results outperforming briaai/RMBG-1.4
🚀 you can try out the model in: ZhengPeng7/BiRefNet_demo
📃paper: Bilateral Reference for High-Resolution Dichotomous Image Segmentation (2401.03407)
Nice work 🔥
Thanks a lot 🤗
arigatooo @s3nh 🤗
thank youuu ❤️
Small models are bed storytellers 🛏️
Thanksiez 🤗
You can checkout the blogpost in https://huggingface.co/blog/not-lain/image-retriever and the associated space at not-lain/image-retriever .
✨ If you want to request another blog post consider letting me know down below or you can reach out to me through any of my social media
📖 Happy reading !
nice work @alex-abb keep it up ✨
I wanted to thank everyone that read my blogpost and I am glad to share that we have achieved 11000 readers 🥳
I couldn't have done this without you, so once again thanks a lot everyone for the support 💖
If you haven't already you can read my blog post at: https://huggingface.co/blog/not-lain/rag-chatbot-using-llama3
@MrFoots
it is the compute resources they currently possess, you can add yours to your profile by going to the https://huggingface.co/settings/local-apps and adding yours
loved it ❤️❤️
Loved it ❤️
This is epic !
nice work @alvdansen , really loved it ❤️
ModelHubMixin is a class developed by HF to integrate AI models with the hub with ease and it comes with 3 methods :
* save_pretrained
* from_pretrained
* push_to_hub
Shoutout to @nielsr , @Wauplin and everyone else on HF for their awesome work 🤗
If you are not familiar with ModelHubMixin and you are looking for extra resources you might consider :
* docs: https://huggingface.co/docs/huggingface_hub/main/en/package_reference/mixins
🔗blog about training models with the trainer API and using ModelHubMixin: https://huggingface.co/blog/not-lain/trainer-api-and-mixin-classes
🔗GitHub repo with pip integration: https://github.com/not-lain/PyTorchModelHubMixin-template
🔗basic guide: https://huggingface.co/posts/not-lain/884273241241808
@m-ric
really nice video, also I really loved the blogpost.
Thanks a lot 🤗
Thanks @Taylor658 🤗
📌Place: huggingface discord server
🔗Link : https://discord.gg/hugging-face-879548962464493619?event=1245406127668203541
@lunarflu don't forget HF unwrapped too, similar to what GitHub, Reddit and other websites do, would be fun to have
@hakunamatata1997 , some people (including me) sometimes think that an AI is unfit for public use (for example failing the toxicity test) therefore, it is not recommended to keep them.
They are used to seamlessly integrate your AI model with huggingface and to save/ load your model easily 🚀
1️⃣ make sure you're using the appropriate library version
pip install -qU "huggingface_hub>=0.22"
2️⃣ inherit from the appropriate class
from huggingface_hub import PyTorchModelHubMixin
from torch import nn
class MyModel(nn.Module,PyTorchModelHubMixin):
def __init__(self, a, b):
super().__init__()
self.layer = nn.Linear(a,b)
def forward(self,inputs):
return self.layer(inputs)
first_model = MyModel(3,1)
4️⃣ push the model to the hub (or use save_pretrained method to save locally)
first_model.push_to_hub("not-lain/test")
5️⃣ Load and initialize the model from the hub using the original class
pretrained_model = MyModel.from_pretrained("not-lain/test")
if you have any extra resources about using, creating, or finetuning them feel free to share them below 🤗
reel
thank you sooooo much ❤️❤️
I came back with another one this time 🤓
in this blog you will learn 📖 :
* How to train custom AI models with the trainer API 🚀
* integrate your AI models with HF using the mixin classes 🔥
happy reading everyone 🤗
🔗link: https://huggingface.co/blog/not-lain/trainer-api-and-mixin-classes
I see you're using the image slider component too, nice work ❤️❤️
Nice work @abhishek ✨
📃the most interesting thing about it is that you can use the FAISS index in the datasets library to retrieve your most similar documents.
🔗https://huggingface.co/blog/not-lain/rag-chatbot-using-llama3
Happy reading everyone ✨
Did anyone say HF?
literally on 🔥
Nice work 🥳🥳
nope it's not a bug, the posts feature is now open for everyone
⚙️ you can now push your custom pipelines easily to 🤗, allowing people to easily use your model in a more friendly, unified way.
🤓 I already updated my blog to match the new feature https://huggingface.co/blog/not-lain/custom-architectures-with-huggingface.
📃A list of some repos that have custom pipelines :
* briaai/RMBG-1.4
* p1atdev/siglip-tagger-test-3
* sgugger/test-dynamic-pipeline
x3 download speed in HfFileSystem = 🔥🚀
I also really loved using the PyTorchModelHubMixin class 🤗🤗
try adding labels
parameter to the forward function in my version of of the RMBG-1.4 model in here https://huggingface.co/not-lain/CustomCodeForRMBG/blob/main/briarmbg.py#L392, this should allow the model to be finetuned easily using the trainer API.
find out more about the labels parameter in this documentation :
https://huggingface.co/docs/transformers/custom_models#writing-a-custom-model
it should look somethind like this :
any open contributions are welcome.
Made a little contribution and it is now easier than ever to use the model via the transformers library
all you have to do is use the following code to access the model :
checkout more details in this pull request : https://huggingface.co/briaai/RMBG-1.4/discussions/9
or like make it a badge in their profiles if they exceed 100 contributions, could be a nice motive for people to make them engage more in the hub
maybe 🧙♀️🧙♂️ for open sorcerers out there
leaving this for future readers, huggingface has a really nice documentation about RAG which i highly recommend reading if you're interested about using them. It incorporates clear examples and neatly formatted code :
https://huggingface.co/docs/transformers/model_doc/rag
we're actually an anime/meme group and i made this community for AI + anime related stuff \( ̄︶ ̄*\))
@Tonic
we just reached 300000 members yerterday on FB 🥳🥳