YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Mu Model

Description

This repository demonstrates how to load the Hugging Face model HuggingFaceTB/SmolLM2-135M using the Transformers library.

Model Used

  • HuggingFaceTB/SmolLM2-135M

Requirements

  • Python
  • transformers
  • torch

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "HuggingFaceTB/SmolLM2-135M"
device = "cpu"

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

Output

Example prompt:

Gravity is

Example generated output:

Gravity is a force that pulls objects towards each other...
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support