Instructions to use chillies/mistral-7b-ielts-evaluator-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chillies/mistral-7b-ielts-evaluator-q4 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("chillies/mistral-7b-ielts-evaluator-q4", dtype="auto") - llama-cpp-python
How to use chillies/mistral-7b-ielts-evaluator-q4 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="chillies/mistral-7b-ielts-evaluator-q4", filename="GUFF-ielts-fighter-unsloth.Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use chillies/mistral-7b-ielts-evaluator-q4 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M # Run inference directly in the terminal: llama-cli -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M # Run inference directly in the terminal: llama-cli -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
Use Docker
docker model run hf.co/chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use chillies/mistral-7b-ielts-evaluator-q4 with Ollama:
ollama run hf.co/chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
- Unsloth Studio new
How to use chillies/mistral-7b-ielts-evaluator-q4 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 chillies/mistral-7b-ielts-evaluator-q4 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 chillies/mistral-7b-ielts-evaluator-q4 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for chillies/mistral-7b-ielts-evaluator-q4 to start chatting
- Docker Model Runner
How to use chillies/mistral-7b-ielts-evaluator-q4 with Docker Model Runner:
docker model run hf.co/chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
- Lemonade
How to use chillies/mistral-7b-ielts-evaluator-q4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull chillies/mistral-7b-ielts-evaluator-q4:Q4_K_M
Run and chat with the model
lemonade run user.mistral-7b-ielts-evaluator-q4-Q4_K_M
List all available models
lemonade list
mistral-7b-ielts-evaluator
Description
mistral-7b-ielts-evaluator is a fine-tuned version of Mistral 7B, specifically trained for evaluating IELTS Writing Task 2 essays. This model provides detailed feedback and scoring for IELTS essays, helping students improve their writing skills.
Installation
To use this model, you will need to install the following dependencies:
pip install transformers
pip install torch # or tensorflow depending on your preference
Usage
Here is how you can load and use the model in your code:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("username/mistral-7b-ielts-evaluator")
model = AutoModelForSequenceClassification.from_pretrained("username/mistral-7b-ielts-evaluator")
# Example usage
essay = "Some people believe that it is better to live in a city while others argue that living in the countryside is preferable. Discuss both views and give your own opinion."
inputs = tokenizer(essay, return_tensors="pt", padding=True, truncation=True)
outputs = model(**inputs)
# Assuming the model outputs a score
score = outputs.logits.argmax(dim=-1).item()
print(f"IELTS Task 2 Evaluation Score: {score}")
Inference
Provide example code for performing inference with your model:
# Example inference
essay = "Some people believe that it is better to live in a city while others argue that living in the countryside is preferable. Discuss both views and give your own opinion."
inputs = tokenizer(essay, return_tensors="pt", padding=True, truncation=True)
outputs = model(**inputs)
# Assuming the model outputs a score
score = outputs.logits.argmax(dim=-1).item()
print(f"IELTS Task 2 Evaluation Score: {score}")
Training
If your model can be trained further, provide instructions for training:
# Example training code
from transformers import Trainer, TrainingArguments
training_args = TrainingArguments(
output_dir="./results",
evaluation_strategy="epoch",
per_device_train_batch_size=8,
per_device_eval_batch_size=8,
num_train_epochs=3,
weight_decay=0.01,
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=train_dataset,
eval_dataset=eval_dataset,
)
trainer.train()
Training Details
Training Data
The model was fine-tuned on a dataset of IELTS Writing Task 2 essays, which includes a diverse range of topics and responses. The dataset is labeled with scores and feedback to train the model effectively.
Training Procedure
The model was fine-tuned using a standard training approach, optimizing for accurate scoring and feedback generation. Training was conducted on [describe hardware, e.g., GPUs, TPUs] over [number of epochs] epochs with [any relevant hyperparameters].
Evaluation
Metrics
The model was evaluated using the following metrics:
- Accuracy: X%
- Precision: Y%
- Recall: Z%
- F1 Score: W%
Comparison
The performance of mistral-7b-ielts-evaluator was benchmarked against other essay evaluation models, demonstrating superior accuracy and feedback quality in the IELTS Writing Task 2 domain.
Limitations and Biases
While mistral-7b-ielts-evaluator is highly effective, it may have limitations in the following areas:
- It may not capture the full complexity of human scoring.
- There may be biases present in the training data that could affect responses.
How to Contribute
We welcome contributions! Please see our contributing guidelines for more information on how to contribute to this project.
License
This model is licensed under the MIT License.
Acknowledgements
We would like to thank the contributors and the creators of the datasets used for training this model.
### Tips for Completing the Template
1. **Replace placeholders** (like `username`, `training data`, `evaluation metrics`) with your actual data.
2. **Include any additional information** specific to your model or training process.
3. **Keep the document updated** as the model evolves or more information becomes available.
- Downloads last month
- 1,530
4-bit