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

  • Log In
  • Sign Up

linhd-postdata
/
llama_easylm

Text Generation
Transformers
llama
Model card Files Files and versions
xet
Community

Instructions to use linhd-postdata/llama_easylm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use linhd-postdata/llama_easylm with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="linhd-postdata/llama_easylm")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("linhd-postdata/llama_easylm")
    model = AutoModelForCausalLM.from_pretrained("linhd-postdata/llama_easylm")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use linhd-postdata/llama_easylm with vLLM:

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

    How to use linhd-postdata/llama_easylm 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 "linhd-postdata/llama_easylm" \
        --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": "linhd-postdata/llama_easylm",
    		"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 "linhd-postdata/llama_easylm" \
            --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": "linhd-postdata/llama_easylm",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use linhd-postdata/llama_easylm with Docker Model Runner:

    docker model run hf.co/linhd-postdata/llama_easylm
llama_easylm
13.5 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
alvp's picture
alvp
Add tokenizer config files
484ad29 almost 3 years ago
  • .gitattributes
    1.58 kB
    Upload llama_easylm.stream almost 3 years ago
  • config.json
    594 Bytes
    Add tokenizer config files almost 3 years ago
  • generation_config.json
    137 Bytes
    Add tokenizer config files almost 3 years ago
  • llama_easylm.stream
    13.5 GB
    xet
    Upload llama_easylm.stream almost 3 years ago
  • special_tokens_map.json
    411 Bytes
    Add tokenizer config files almost 3 years ago
  • tokenizer.json
    1.84 MB
    Add tokenizer config files almost 3 years ago
  • tokenizer.model
    500 kB
    xet
    Upload 3 files almost 3 years ago
  • tokenizer_config.json
    700 Bytes
    Add tokenizer config files almost 3 years ago