Instructions to use masahiroid/Sentiment-Analysis-7B-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use masahiroid/Sentiment-Analysis-7B-4bit-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("masahiroid/Sentiment-Analysis-7B-4bit-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use masahiroid/Sentiment-Analysis-7B-4bit-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "masahiroid/Sentiment-Analysis-7B-4bit-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "masahiroid/Sentiment-Analysis-7B-4bit-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "masahiroid/Sentiment-Analysis-7B-4bit-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Download audit/bom.json from masahiroid/Sentiment-Analysis-7B-4bit-mlx: direct link, hf CLI and curl.
- Browser
- Download file 5.46 kB
-
https://huggingface.co/masahiroid/Sentiment-Analysis-7B-4bit-mlx/resolve/main/audit/bom.json
- Command line
-
hf download hf://masahiroid/Sentiment-Analysis-7B-4bit-mlx/audit/bom.json
-
curl -L -o bom.json https://huggingface.co/masahiroid/Sentiment-Analysis-7B-4bit-mlx/resolve/main/audit/bom.json
5.46 kB
| { | |
| "bomFormat": "CycloneDX", | |
| "specVersion": "1.6", | |
| "serialNumber": "urn:uuid:17fca1ab-602f-4598-a75d-7ac946948116", | |
| "version": 1, | |
| "metadata": { | |
| "timestamp": "2026-10-21T17:08:06Z", | |
| "tools": { | |
| "components": [ | |
| { | |
| "type": "application", | |
| "name": "model-audit-lite", | |
| "version": "0.7.0" | |
| } | |
| ] | |
| }, | |
| "component": { | |
| "type": "machine-learning-model", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f", | |
| "name": "masahiroid/Sentiment-Analysis-7B-4bit-mlx", | |
| "version": "7b3a7002dbf797c402329c462cf3167ca2cd386f" | |
| } | |
| }, | |
| "components": [ | |
| { | |
| "type": "machine-learning-model", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f", | |
| "name": "masahiroid/Sentiment-Analysis-7B-4bit-mlx", | |
| "externalReferences": [ | |
| { | |
| "type": "distribution", | |
| "url": "https://huggingface.co/masahiroid/Sentiment-Analysis-7B-4bit-mlx" | |
| } | |
| ], | |
| "version": "7b3a7002dbf797c402329c462cf3167ca2cd386f", | |
| "licenses": [ | |
| { | |
| "license": { | |
| "id": "mit" | |
| } | |
| } | |
| ], | |
| "components": [ | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#chat_template.jinja", | |
| "name": "chat_template.jinja", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "796853172235ab3aaa4810013ddfe2eab481bda3306dad4f700c00d436eed596" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#config.json", | |
| "name": "config.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "461ce245a46e07851132e2ef5ee906a8cc3e7d884893c42edf2c2da9536d025d" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#generation_config.json", | |
| "name": "generation_config.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "b59394c12a80ba472c4cdd73cf923df1d5e6fb665c2c99e744f76d6c6575781e" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#model.safetensors", | |
| "name": "model.safetensors", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "7cf71faf743ce0462c0080459f639698fefbb951b0c0180b0453b379f2faabf8" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#model.safetensors.index.json", | |
| "name": "model.safetensors.index.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "217c85fdbb4ce160b110221510bb401c7c587e1fc0fbd48cb36e35af1f136c94" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#tokenizer.json", | |
| "name": "tokenizer.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "835cf54bb933752267652500a9243a9002107bbb4501b99f8d2f46ccfdad2567" | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "file", | |
| "bom-ref": "hf:masahiroid/Sentiment-Analysis-7B-4bit-mlx@7b3a7002dbf797c402329c462cf3167ca2cd386f#tokenizer_config.json", | |
| "name": "tokenizer_config.json", | |
| "hashes": [ | |
| { | |
| "alg": "SHA-256", | |
| "content": "c2e2a7107fadd2816b91f182a5675125d3bd36f3e295e8aa5234102a08dbc0c9" | |
| } | |
| ] | |
| } | |
| ], | |
| "pedigree": { | |
| "ancestors": [ | |
| { | |
| "type": "machine-learning-model", | |
| "bom-ref": "hf:microsoft/Sentiment-Analysis-7B@c443f040bb22ad30d69dbdd4482c8aa0f46a4d62", | |
| "name": "microsoft/Sentiment-Analysis-7B", | |
| "externalReferences": [ | |
| { | |
| "type": "distribution", | |
| "url": "https://huggingface.co/microsoft/Sentiment-Analysis-7B" | |
| } | |
| ], | |
| "version": "c443f040bb22ad30d69dbdd4482c8aa0f46a4d62" | |
| } | |
| ], | |
| "notes": "Converted/derived from microsoft/Sentiment-Analysis-7B. Lineage is declared by the publisher; see properties for checks." | |
| }, | |
| "properties": [ | |
| { | |
| "name": "model-audit-lite:total-files", | |
| "value": "9" | |
| }, | |
| { | |
| "name": "model-audit-lite:risky-pickle-files", | |
| "value": "0" | |
| }, | |
| { | |
| "name": "model-audit-lite:custom-code-files", | |
| "value": "0" | |
| }, | |
| { | |
| "name": "model-audit-lite:formats", | |
| "value": "safetensors,mlx" | |
| }, | |
| { | |
| "name": "model-audit-lite:derived-from", | |
| "value": "microsoft/Sentiment-Analysis-7B" | |
| }, | |
| { | |
| "name": "model-audit-lite:chat-template-changed", | |
| "value": "false" | |
| } | |
| ] | |
| } | |
| ] | |
| } |