Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

azeddinShr
/
LFM2-350M-Math-Arabic

Transformers
Safetensors
English
text-generation-inference
unsloth
lfm2
trl
Model card Files Files and versions
xet
Community

Instructions to use azeddinShr/LFM2-350M-Math-Arabic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use azeddinShr/LFM2-350M-Math-Arabic with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("azeddinShr/LFM2-350M-Math-Arabic", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Unsloth Studio new

    How to use azeddinShr/LFM2-350M-Math-Arabic with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for azeddinShr/LFM2-350M-Math-Arabic to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for azeddinShr/LFM2-350M-Math-Arabic to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for azeddinShr/LFM2-350M-Math-Arabic to start chatting
    Load model with FastModel
    pip install unsloth
    from unsloth import FastModel
    model, tokenizer = FastModel.from_pretrained(
        model_name="azeddinShr/LFM2-350M-Math-Arabic",
        max_seq_length=2048,
    )
LFM2-350M-Math-Arabic
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
azeddinShr's picture
azeddinShr
Upload model trained with Unsloth
3ab21c6 verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    567 Bytes
    Upload README.md with huggingface_hub 7 months ago
  • adapter_config.json
    1.22 kB
    Upload model trained with Unsloth 7 months ago
  • adapter_model.safetensors
    20.1 MB
    xet
    Upload model trained with Unsloth 7 months ago
  • chat_template.jinja
    1.3 kB
    Upload model trained with Unsloth 7 months ago
  • special_tokens_map.json
    434 Bytes
    Upload model trained with Unsloth 7 months ago
  • tokenizer.json
    4.73 MB
    Upload model trained with Unsloth 7 months ago
  • tokenizer_config.json
    91.6 kB
    Upload model trained with Unsloth 7 months ago