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

  • Log In
  • Sign Up

ZySec-AI
/
phi4-document-writer

Feature Extraction
Transformers
English
phi3
text-generation-inference
unsloth
custom_code
Model card Files Files and versions
xet
Community

Instructions to use ZySec-AI/phi4-document-writer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ZySec-AI/phi4-document-writer with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="ZySec-AI/phi4-document-writer", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("ZySec-AI/phi4-document-writer", trust_remote_code=True)
    model = AutoModel.from_pretrained("ZySec-AI/phi4-document-writer", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Unsloth Studio new

    How to use ZySec-AI/phi4-document-writer 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 ZySec-AI/phi4-document-writer 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 ZySec-AI/phi4-document-writer to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for ZySec-AI/phi4-document-writer to start chatting
    Load model with FastModel
    pip install unsloth
    from unsloth import FastModel
    model, tokenizer = FastModel.from_pretrained(
        model_name="ZySec-AI/phi4-document-writer",
        max_seq_length=2048,
    )
phi4-document-writer
7.69 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
venkycs's picture
venkycs
Upload config.json
0f231a1 verified about 1 year ago
  • .gitattributes
    1.57 kB
    (Trained with Unsloth) about 1 year ago
  • README.md
    576 Bytes
    Unsloth Model Card about 1 year ago
  • added_tokens.json
    282 Bytes
    (Trained with Unsloth) about 1 year ago
  • config.json
    3.26 kB
    Upload config.json about 1 year ago
  • configuration_phi3.py
    10.9 kB
    Upload 2 files about 1 year ago
  • merges.txt
    2.42 MB
    (Trained with Unsloth) about 1 year ago
  • model-00001-of-00002.safetensors
    4.9 GB
    xet
    (Trained with Unsloth) about 1 year ago
  • model-00002-of-00002.safetensors
    2.77 GB
    xet
    (Trained with Unsloth) about 1 year ago
  • modeling_phi3.py
    54.3 kB
    Upload 2 files about 1 year ago
  • special_tokens_map.json
    579 Bytes
    (Trained with Unsloth) about 1 year ago
  • tokenizer.json
    15.5 MB
    xet
    (Trained with Unsloth) about 1 year ago
  • tokenizer_config.json
    3.38 kB
    (Trained with Unsloth) about 1 year ago
  • vocab.json
    3.91 MB
    (Trained with Unsloth) about 1 year ago