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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

introvoyz041
/
OceanGPT-basic-7B-v0.1-mlx-4Bit

Text Generation
MLX
Safetensors
English
llama
ocean
text-generation-inference
oceangpt
mlx-my-repo
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use introvoyz041/OceanGPT-basic-7B-v0.1-mlx-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use introvoyz041/OceanGPT-basic-7B-v0.1-mlx-4Bit with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    # if on a CUDA device, also pip install mlx[cuda]
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("introvoyz041/OceanGPT-basic-7B-v0.1-mlx-4Bit")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • MLX LM

    How to use introvoyz041/OceanGPT-basic-7B-v0.1-mlx-4Bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "introvoyz041/OceanGPT-basic-7B-v0.1-mlx-4Bit" --prompt "Once upon a time"
OceanGPT-basic-7B-v0.1-mlx-4Bit
3.79 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
introvoyz041's picture
introvoyz041
Upload README.md with huggingface_hub
b06fc7b verified 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    1.05 kB
    Upload README.md with huggingface_hub 6 months ago
  • config.json
    886 Bytes
    Upload config.json with huggingface_hub 6 months ago
  • generation_config.json
    132 Bytes
    Upload generation_config.json with huggingface_hub 6 months ago
  • model.safetensors
    3.79 GB
    xet
    Upload model.safetensors with huggingface_hub 6 months ago
  • model.safetensors.index.json
    52.4 kB
    Upload model.safetensors.index.json with huggingface_hub 6 months ago
  • special_tokens_map.json
    411 Bytes
    Upload special_tokens_map.json with huggingface_hub 6 months ago
  • tokenizer.json
    3.62 MB
    Upload tokenizer.json with huggingface_hub 6 months ago
  • tokenizer_config.json
    971 Bytes
    Upload tokenizer_config.json with huggingface_hub 6 months ago