BangumiBase

community

AI & ML interests

Character Database of Bangumis (If you need character LoRAs, see: https://huggingface.co/CyberHarem)

Recent Activity

narugoย  updated a Space about 4 hours ago
BangumiBase/README
narugoย  updated a Space about 10 hours ago
BangumiBase/README
narugoย  updated a Space about 20 hours ago
BangumiBase/README
View all activity

BangumiBase's activity

narugoย 
updated a Space about 4 hours ago
not-lainย 
posted an update 8 days ago
not-lainย 
posted an update 21 days ago
view post
Post
1407
we now have more than 2000 public AI models using ModelHubMixin๐Ÿค—
not-lainย 
posted an update 26 days ago
view post
Post
3969
Published a new blogpost ๐Ÿ“–
In this blogpost I have gone through the transformers' architecture emphasizing how shapes propagate throughout each layer.
๐Ÿ”— https://huggingface.co/blog/not-lain/tensor-dims
some interesting takeaways :
s3nhย 
posted an update about 2 months ago
view post
Post
1873
Welcome back,

Small Language Models Enthusiasts and GPU Poor oss enjoyers lets connect.
Just created an organization which main target is to have fun with smaller models tuneable on consumer range GPUs, feel free to join and lets have some fun, much love ;3

https://huggingface.co/SmolTuners
ยท
lunarfluย 
posted an update 2 months ago
not-lainย 
posted an update 3 months ago
view post
Post
2304
ever wondered how you can make an API call to a visual-question-answering model without sending an image url ๐Ÿ‘€

you can do that by converting your local image to base64 and sending it to the API.

recently I made some changes to my library "loadimg" that allows you to make converting images to base64 a breeze.
๐Ÿ”— https://github.com/not-lain/loadimg

API request example ๐Ÿ› ๏ธ:
from loadimg import load_img
from huggingface_hub import InferenceClient

# or load a local image
my_b64_img = load_img(imgPath_url_pillow_or_numpy ,output_type="base64" ) 

client = InferenceClient(api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

messages = [
	{
		"role": "user",
		"content": [
			{
				"type": "text",
				"text": "Describe this image in one sentence."
			},
			{
				"type": "image_url",
				"image_url": {
					"url": my_b64_img # base64 allows using images without uploading them to the web
				}
			}
		]
	}
]

stream = client.chat.completions.create(
    model="meta-llama/Llama-3.2-11B-Vision-Instruct", 
	messages=messages, 
	max_tokens=500,
	stream=True
)

for chunk in stream:
    print(chunk.choices[0].delta.content, end="")
lunarfluย 
posted an update 6 months ago
not-lainย 
posted an update 6 months ago
lunarfluย 
posted an update 7 months ago
view post
Post
1894
Cool things this week from @huggingface !

๐ŸŒŽAI math olympiad winner NuminaMath is here!
๐Ÿค—Announcing New Hugging Face and Keras NLP integration
โœจUI overhaul to HF tokens!
๐ŸงŠ Embed our dataset viewer on any webpage!

https://huggingface.co/blog/winning-aimo-progress-prize
https://huggingface.co/blog/keras-nlp-integration
https://huggingface.co/settings/tokens
https://x.com/julien_c/status/1812099420726456457

Check out the full list on our discord! ๐Ÿ‘‡
https://discord.com/invite/JfAtkvEtRb
not-lainย 
posted an update 7 months ago
view post
Post
7731
I am now a huggingface fellow ๐Ÿฅณ
ยท
not-lainย 
posted an update 7 months ago
view post
Post
2683
I have finished writing a blogpost about building an image-based retrieval system, This is one of the first-ever approaches to building such a pipeline using only open-source models/libraries ๐Ÿค—

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 !
not-lainย 
posted an update 8 months ago
view post
Post
1457
Hello beautiful people.
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
not-lainย 
posted an update 8 months ago
view post
Post
2103
It is with great pleasure I inform you that huggingface's ModelHubMixin reached 200+ models on the hub ๐Ÿฅณ

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
lunarfluย 
posted an update 8 months ago
view post
Post
2327
By popular demand, HF activity tracker v1.0 is here! ๐Ÿ“Š let's build it together!๐Ÿค—

Lots of things to improve, feel free to open PRs in the community tab!

good PR ideas:
- track more types of actions that include date+time
- bigger plot
- track discord activity too ๐Ÿคฏ
- link github? โšก

https://huggingface.co/spaces/huggingface-projects/LevelBot
  • 2 replies
ยท
not-lainย 
posted an update 8 months ago
view post
Post
1940
I will be delivering an introductory coding session this Sunday 7Pm gmt+1 time about huggingface, if you are new to HF and don't know where to begin, you are welcome to join us ๐Ÿค—
๐Ÿ“ŒPlace: huggingface discord server
๐Ÿ”—Link : https://discord.gg/hugging-face-879548962464493619?event=1245406127668203541
  • 2 replies
ยท
lunarfluย 
posted an update 8 months ago
view post
Post
1968
Weekly highlights for the HF ecosystem!

๐Ÿš€ Phi 3
๐Ÿฆ… Falcon VLM
๐Ÿค— sentence-transformers v3.0 is here! Train and finetune embedding models with multi-GPU training, bf16 support, loss logging, callbacks and more!
๐Ÿฅณ Gradio launch event 6/6! We're launching 1.0 versions of two new libraries, Python + JS client libraries to programmatically query Gradio apps, and several new features making it easier to use Gradio apps in production!
โœจ Tools now available in HuggingChat! Use any AI apps built by the community! ๐Ÿ”ฅ
๐ŸงŠ ML for 3D Course Unit 3 is here! Covering Gaussian splatting, how it fits in the generative 3D pipeline, and hands-on code to build your own demo!

See the full list here!
https://discord.com/channels/879548962464493619/897387888663232554/1245036889539612764 !
  • 2 replies
ยท
lunarfluย 
posted an update 8 months ago
view post
Post
1972
cooking up something....anyone interested in a daily activity tracker for HF?
ยท
not-lainย 
posted an update 9 months ago
view post
Post
1547
If you're a researcher or developing your own model ๐Ÿ‘€ you might need to take a look at huggingface's ModelHubMixin classes.
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")

lunarfluย 
posted an update 9 months ago