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

  • Log In
  • Sign Up

Irfanuruchi
/
Llama-2-13B-Computer-Engineering

Text Generation
Transformers
Safetensors
English
llama
llama2
computer-engineering
computer-architecture
algorithms
systems
qora
lora
quantized
merged
text-generation-inference
4-bit precision
bitsandbytes
Model card Files Files and versions
xet
Community

Instructions to use Irfanuruchi/Llama-2-13B-Computer-Engineering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Irfanuruchi/Llama-2-13B-Computer-Engineering with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Irfanuruchi/Llama-2-13B-Computer-Engineering")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("Irfanuruchi/Llama-2-13B-Computer-Engineering")
    model = AutoModelForCausalLM.from_pretrained("Irfanuruchi/Llama-2-13B-Computer-Engineering")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Irfanuruchi/Llama-2-13B-Computer-Engineering with vLLM:

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

    How to use Irfanuruchi/Llama-2-13B-Computer-Engineering 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 "Irfanuruchi/Llama-2-13B-Computer-Engineering" \
        --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": "Irfanuruchi/Llama-2-13B-Computer-Engineering",
    		"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 "Irfanuruchi/Llama-2-13B-Computer-Engineering" \
            --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": "Irfanuruchi/Llama-2-13B-Computer-Engineering",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use Irfanuruchi/Llama-2-13B-Computer-Engineering with Docker Model Runner:

    docker model run hf.co/Irfanuruchi/Llama-2-13B-Computer-Engineering
Llama-2-13B-Computer-Engineering
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
Irfanuruchi's picture
Irfanuruchi
Update README.md
74380f0 verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    4.02 kB
    Update README.md 8 months ago
  • config.json
    1.2 kB
    Config and tokenizer files 8 months ago
  • generation_config.json
    132 Bytes
    Config and tokenizer files 8 months ago
  • model-00001-of-00002.safetensors
    5 GB
    xet
    Add model-00001-of-00002.safetensors 8 months ago
  • model-00002-of-00002.safetensors
    2.2 GB
    xet
    Add model-00002-of-00002.safetensors 8 months ago
  • model.safetensors.index.json
    165 kB
    Config and tokenizer files 8 months ago
  • special_tokens_map.json
    434 Bytes
    Config and tokenizer files 8 months ago
  • tokenizer.json
    3.62 MB
    Config and tokenizer files 8 months ago
  • tokenizer.model
    500 kB
    xet
    Config and tokenizer files 8 months ago
  • tokenizer_config.json
    920 Bytes
    Config and tokenizer files 8 months ago