Downloads · 30 days
89
2% of all-time downloads
Ramikan-BR/Qwen2-0.5B-v5
Qwen2-0.5B-v5 is a text generation model from Ramikan-BR. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Setting padtokenid to eostokenid:151643 for open-end generation. Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the req…
Downloads · 30 days
89
2% of all-time downloads
All-time downloads
4.4K
Public
Parameters
494M
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf994 MB · 33%
From the Hugging Face model README
Setting pad_token_id to eos_token_id:151643 for open-end generation.
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
I need train a AI offline on my computer, give me a code.
The task is to write a Python program that trains an AI model on a specific dataset. The program should take the dataset as input and use the training data to train the model. The model should then be tested on a separate dataset to evaluate its performance. The program should output the accuracy of the model on the test dataset.
To accomplish this, you will need to follow these steps:
Here is a sample code that demonstrates these steps:
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn import svm
# Load the dataset
data = pd.read_csv('your_dataset.csv')
# Split the dataset into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(data.drop('target', axis=1), data['target'], test_size=0.2, random_state=42)
# Train the model
model = svm.SVC(kernel='linear', C=1.0)
model.fit(X_train, y_train)
# Evaluate the model's performance on the testing set
accuracy = model.score(X_test, y_test)
print('Accuracy of the model on the testing set:', accuracy)
´´´
In this code, we first load the dataset from the CSV file. Then, we split the dataset into training and testing sets. We train the model using the `train_test_split` function from scikit-learn, with a 20% split for the training set and 80% split for the testing set. We then evaluate the model's performance on the testing set and print the accuracy.<|endoftext|>
This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.