How to use from
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 "RayanNan/Mistralsentiment" \
    --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": "RayanNan/Mistralsentiment",
		"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 "RayanNan/Mistralsentiment" \
        --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": "RayanNan/Mistralsentiment",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Model Description

This model is trained basing on Mistral, which is used to detect sentiment of social media.

  • Author and their Hugging Face Account: Nan Ye(RayanNan), Zhen Ma(Mark01927), Chi Zhang(BillZhang0325), Jiayin Li(Moriacrafter)
  • Funded by: WenZhou Kean University
  • Model type: LLM
  • Language(s): English
  • Finetuned from model: e5-mistral-7b-instruct

Bias, Risks, and Limitations

The model we used to finetune the model is only considered about the Positive and Negative sentiment, the netural sentiment is not included

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

Training Details

Training Data

the model is trained basing on our own dataset with the link: RayanNan/Sentimentanalysis-endangeredspecies

Downloads last month
8
Safetensors
Model size
7B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train RayanNan/Mistralsentiment