Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

marathi-llm
/
MahaMarathi-7B-v24.01-Base

Text Generation
Transformers
Safetensors
Marathi
llama
text-generation-inference
Model card Files Files and versions
xet
Community
8

Instructions to use marathi-llm/MahaMarathi-7B-v24.01-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use marathi-llm/MahaMarathi-7B-v24.01-Base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="marathi-llm/MahaMarathi-7B-v24.01-Base", device_map="auto")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("marathi-llm/MahaMarathi-7B-v24.01-Base")
    model = AutoModelForCausalLM.from_pretrained("marathi-llm/MahaMarathi-7B-v24.01-Base", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use marathi-llm/MahaMarathi-7B-v24.01-Base with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "marathi-llm/MahaMarathi-7B-v24.01-Base"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "marathi-llm/MahaMarathi-7B-v24.01-Base",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/marathi-llm/MahaMarathi-7B-v24.01-Base
  • SGLang

    How to use marathi-llm/MahaMarathi-7B-v24.01-Base with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "marathi-llm/MahaMarathi-7B-v24.01-Base" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "marathi-llm/MahaMarathi-7B-v24.01-Base",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "marathi-llm/MahaMarathi-7B-v24.01-Base" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "marathi-llm/MahaMarathi-7B-v24.01-Base",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use marathi-llm/MahaMarathi-7B-v24.01-Base with Docker Model Runner:

    docker model run hf.co/marathi-llm/MahaMarathi-7B-v24.01-Base
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

You got a serious licensing problem

#8 opened over 1 year ago by
JLouisBiz

How I should tune it? I wanted to tune it for Marathi School

1
#7 opened over 1 year ago by
nsidhaye

Request: DOI

#6 opened about 2 years ago by
Shyamkant

Access to model marathi-llm/MahaMarathi-7B-v24.01-Base is restricted. You must be authenticated to access it.

#5 opened about 2 years ago by
sandeepsangole

Generation does not seem to be very good

4
#4 opened over 2 years ago by
aghatage

Please suggest recommended Temperature and GPU settings

#3 opened over 2 years ago by
Vishwas1

Fascinating

1
#2 opened over 2 years ago by
adityajoshi

Quantise to support llama.cpp

👀 1
#1 opened over 2 years ago by
TusharRay
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs