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

sp-embraceable
/
e2-phi4-instruct-NTK-Scaled-adapter-1000steps

Text Generation
PEFT
Safetensors
Transformers
lora
sft
trl
unsloth
conversational
Model card Files Files and versions
xet
Community

Instructions to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("sp-embraceable/e2-phi4-instruct-NTK-Scaled")
    model = PeftModel.from_pretrained(base_model, "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps")
  • Transformers

    How to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps
  • SGLang

    How to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps 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 "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Unsloth Studio

    How to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps 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 sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps 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 sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps to start chatting
    Load model with FastModel
    pip install unsloth
    from unsloth import FastModel
    model, tokenizer = FastModel.from_pretrained(
        model_name="sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps",
        max_seq_length=2048,
    )
  • Docker Model Runner

    How to use sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps with Docker Model Runner:

    docker model run hf.co/sp-embraceable/e2-phi4-instruct-NTK-Scaled-adapter-1000steps
e2-phi4-instruct-NTK-Scaled-adapter-1000steps
399 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
sp-embraceable's picture
sp-embraceable
Rename training_args (1).bin to training_args.bin
8e4562c verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    5.26 kB
    Upload 13 files about 1 year ago
  • adapter_config.json
    922 Bytes
    Rename adapter_config (1).json to adapter_config.json about 1 year ago
  • adapter_model.safetensors
    262 MB
    xet
    Rename adapter_model (1).safetensors to adapter_model.safetensors about 1 year ago
  • chat_template.jinja
    462 Bytes
    Upload 13 files about 1 year ago
  • merges.txt
    917 kB
    Upload 13 files about 1 year ago
  • optimizer.pt
    134 MB
    xet
    Upload 13 files about 1 year ago
  • rng_state.pth
    14.2 kB
    xet
    Rename rng_state (1).pth to rng_state.pth about 1 year ago
  • scheduler.pt
    1.06 kB
    xet
    Rename scheduler (1).pt to scheduler.pt about 1 year ago
  • special_tokens_map.json
    570 Bytes
    Upload 13 files about 1 year ago
  • tokenizer_config.json
    17.6 kB
    Upload 13 files about 1 year ago
  • trainer_state.json
    176 kB
    Rename trainer_state (1).json to trainer_state.json about 1 year ago
  • training_args.bin
    5.75 kB
    xet
    Rename training_args (1).bin to training_args.bin about 1 year ago
  • vocab.json
    2.01 MB
    Upload 13 files about 1 year ago