alt.freeweights.text / Sentiment-Analysis-7B
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject:

Sentiment-Analysis-7B

Date: 2026-11-15Commit: ac33240Signed: 2DC28CC7B26A283B ✓

Text generation model with 7.2B parameters. Safetensors weights, 14.5 GB in all. Published by microsoft under MIT.

7.2B params14.5GBSentiment-Analysis-7Bsafetensorspermissive
FactsParams7.2BSize14.5 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/Sentiment-Analysis-7B
# manifest sha256 8a42bbd17743… · 14.5 GB · 23 files
$ fw verify ./Sentiment-Analysis-7B microsoft/Sentiment-Analysis-7B
From sourceHosted (signed)microsoft/Sentiment-Analysis-7BLast check: 2026-11-15 03:23 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Mistral-7B-Instruct-v0.2.

Works with

Overview

Size
14.5 GB
Weights
14.5 GB (safetensors)
Parameters
7.2B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
23, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: mistralai/Mistral-7B-Instruct-v0.2

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:23 UTCpassed

Model card

From the publisher at commit ac33240. Shown as plain text with links; images open at the publisher.
Sentiment-Analysis-7B#

Sentiment-Analysis-7B is a 7B-parameter autoregressive language model fine-tuned for sentiment classification of user messages directed at a service, product, or agent (the "Target"). It is built on top of mistralai/Mistral-7B-Instruct-v0.2 and was fine-tuned with reinforcement learning, using an LLM as a judge, on a small internal training set of ~300 examples. No pre-defined labels were used for training.

Given a user message, the model generates a response in the following format: the first token is the sentiment label (Negative, Neutral, or Positive), followed by a short explanation of the decision.

Evaluation metrics#

The evaluation metric used is accuracy. The following compares the base model with the fine-tuned model.

modelaccuracy
mistralai/Mistral-7B-Instruct-v0.262.0%
Sentiment-Analysis-7B (ours)72.8%
How to use#

The model is a causal language model and is loaded with AutoModelForCausalLM. The sentiment label is always the first generated token, so setting max_new_tokens=3 returns the label only. Use the system prompt below, which defines the "Target" and the sentiment rules.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "microsoft/Sentiment-Analysis-7B"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, torch_dtype=torch.bfloat16, device_map="auto"
)

system_prompt = """Return sentiment of user message as Positive/Neutral/Negative and explanation. Ex: Negative, the user expresses blame (as "you lie"), which conveys a negative tone.
Definition of "Target": the current service, product, or agent the user is interacting with (including its website, app, API, or support).
Rules of sentiment:
* Questions/statements clearly unrelated to Target → Neutral
* Otherwise, if related to Target:
    * Questions containing complaint/frustration/blame → Negative. Ex, What is the point of writing here if technical support does not respond?
    * Indirect incidents → Neutral. Ex, submit helpdesk ticket: mobile app crashes on startup
    * Statement of any inability/failure → Negative. Ex, I'm having trouble logging in.
    * Failure statement + polite/help request → Neutral. Ex, Login button is not working. Can you help?
"""

sample = "I'm having trouble logging in to my account."

messages = [
    {"role": "system", "content": system_prompt},
    {"role": "user", "content": sample},
]
inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
).to(model.device)

# Label only
output = model.generate(**inputs, max_new_tokens=3, do_sample=False)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Output:

Negative

To get the explanation as well, increase max_new_tokens:

output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Output:

Negative, the user states an inability to log in, which is a failure related to the Target.

Files

23 files · 14.5 GBWeights 14.5 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 23 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.63 KB3ef2787634f6eacea1491c6e37894c96935d8e771bf03662b4820a7c70bad9bb
chat_template.jinja1.06 KB796853172235ab3aaa4810013ddfe2eab481bda3306dad4f700c00d436eed596
config.json689 B4b67c75e719120a7dc6c8e079bda0cd0438878900d729b5e0bbbb2c4d8ff8134
generation_config.json110 Bb59394c12a80ba472c4cdd73cf923df1d5e6fb665c2c99e744f76d6c6575781e
model-00001-of-00015.safetensors961 MB24da1c407f068b731b34a787764352fb053c287747184f33bec75a1515001324
model-00002-of-00015.safetensors990 MBc4520b5b6b6473d0cf7d244ea1d595e24b5e93f3e90c9c843af4bc64aac6def4
model-00003-of-00015.safetensors990 MBb56106f23f3cc4ab2ec59c7d439c208859c397a99a83f2f6b2675c559ad4023c
model-00004-of-00015.safetensors998 MB92e60ae347510f961f71bef69ef25bbfb4b7b9107038917868025f755f309e32
model-00005-of-00015.safetensors948 MBb1051f081e98fee270cf49c09edfd08340d32d425d6634b288344df1f67a148a
model-00006-of-00015.safetensors990 MB25667b5610dd906ad521161cea4875735a607b9461a37f1ca349251bf6c04a82
model-00007-of-00015.safetensors990 MBf03cb2252a87bd2e78d1be9c99efdeb1fe4238314cf1cf5197dc8fb29e6cbe32
model-00008-of-00015.safetensors998 MBcdef02ce8b486a60abc553115f4db2518b4eaac7bb614888ee6915d23eef2741
model-00009-of-00015.safetensors948 MB90780f49ac55a4ad0aeeb9ce4291d7c2f239a4a341308945d681679410c50285
model-00010-of-00015.safetensors990 MB8bbdf423202742a331ed600a8400743f9b6cdd534dcde3fa291fa909eee5f9dd
model-00011-of-00015.safetensors990 MBc87db729c9ce9182d3078bbaf80f50cb0aa08a7cc9d9b08a8ab31aa1d44b8e08
model-00012-of-00015.safetensors998 MBa1f0fc451ef26b86a25c1f2d36dfc6f742c734c9823d3242a90df7291f9975c5
model-00013-of-00015.safetensors948 MB1184777032f6a3decba1e513cfe67d46c38d80eb36978e0ce9f9ef8d8600e958
model-00014-of-00015.safetensors990 MB61cdc5c14305ef4517c2acb8d54e5e3a8af5ef978ec1d56e49602e7877979a5b
model-00015-of-00015.safetensors755 MBb9a6de5df22b0e4c7d8542ecd68b0e2d3e160d23fcb63d148807bdf9c2f5a18d
model.safetensors.index.json24.0 KB573820ea9100cb0ff79653f1788cfef43fbfd8a73ff74ec6b63e277e3cc23f60
tokenizer.json3.51 MB835cf54bb933752267652500a9243a9002107bbb4501b99f8d2f46ccfdad2567
tokenizer_config.json461 Bcb01406fcd4f47ac955e5ba05f3d71978644b305611d06d98f4bfed5d2a77791
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
ac3324057c pinned now2026-11-15 03:23 UTC23 files · 14.5 GB

Use it

$ fw get microsoft/Sentiment-Analysis-7B
# manifest sha256 8a42bbd17743… · 14.5 GB · 23 files
$ fw verify ./Sentiment-Analysis-7B microsoft/Sentiment-Analysis-7B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/Sentiment-Analysis-7B.json --dir ./Sentiment-Analysis-7B $ python3 fw.py verify ./Sentiment-Analysis-7B ./microsoft__Sentiment-Analysis-7B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Sentiment-Analysis-7B --revision ac3324057c2bfeeb2ab56c7a7c786316538552b1 --local-dir ./Sentiment-Analysis-7B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("microsoft/Sentiment-Analysis-7B", revision="ac3324057c2bfeeb2ab56c7a7c786316538552b1") model = AutoModelForCausalLM.from_pretrained("microsoft/Sentiment-Analysis-7B", revision="ac3324057c2bfeeb2ab56c7a7c786316538552b1", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve microsoft/Sentiment-Analysis-7B --revision ac3324057c2bfeeb2ab56c7a7c786316538552b1

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
3ef2787634f6eacea1491c6e37894c96935d8e771bf03662b4820a7c70bad9bb
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject: Sentiment-Analysis-7BDate: 2026-11-15Commit: ac33240Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/Sentiment-Analysis-7B
Pinned commit
ac3324057c2bfeeb2ab56c7a7c786316538552b1
Manifest
Sentiment-Analysis-7B.json · .minisig
Manifest sha256
8a42bbd177433a96e1e84bd99bb059943eb5c483622e7ed3893946ea40014d4f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:23 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Sentiment-Analysis-7B.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Sentiment-Analysis-7B.json.minisig $ minisign -Vm Sentiment-Analysis-7B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

mistralai/Mistral-7B-Instruct-v0.2 · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Sentiment-Analysis-7B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Sentiment-Analysis-7B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B