
Introduction to Forefront AI
Forefront AI is a powerful platform designed to bridge the gap between the flexibility of open-source AI models and the ease-of-use of commercial, closed-source services like OpenAI or Anthropic. If you have ever wanted to fine-tune a model on your own private data, run evaluations to ensure quality, and deploy a custom AI endpoint without managing complex infrastructure, Forefront provides a solution. It is built for developers, data scientists, and AI enthusiasts who need full control over their models—including transparency into training processes, data privacy, and cost efficiency.
Unlike many platforms that lock you into proprietary ecosystems, Forefront allows you to work with open-source models such as Llama, Mistral, and others. You can fine-tune these models using your own datasets, monitor training with built-in loss charts, evaluate performance against validation sets, and then deploy the final model via serverless API endpoints. The platform also includes a Playground for quick experimentation. This tutorial will walk you through everything you need to know to get started, from creating an account to deploying your first custom model.
Getting Started
Creating an Account and Accessing the Dashboard
To begin using Forefront AI, navigate to https://forefront.ai/ and click on the “Sign Up” button. You can register using your email address or a Google account. After verifying your email, you will be taken to the main dashboard. The dashboard is your central hub for managing models, datasets, and deployments. It is organized into clear sections: Models, Datasets, Deployments, and Playground.
Understanding the Interface
Take a moment to familiarize yourself with the layout. On the left sidebar, you will find navigation links. The top bar shows your account credits and settings. The main area displays your current projects. Forefront uses a credit-based system for compute resources, so you will need to add credits before training or deploying models. You can purchase credits from the Billing section.
Setting Up Your First Project
Forefront does not require you to create “projects” in the traditional sense. Instead, you work directly with models and datasets. However, it is good practice to organize your work by naming your fine-tuned models and datasets clearly. For example, if you are building a customer support chatbot, you might name your dataset “support-chat-v1” and your model “support-llama-8b-v1”.
Key Features
Fine-Tune Open-Source Models on Private Data
The core strength of Forefront is the ability to take a base open-source model (like Llama 3, Mistral, or Gemma) and fine-tune it on your own private data. Fine-tuning adapts the model to your specific domain, style, or task. Your data never leaves the platform’s secure environment, ensuring privacy. You can upload data in formats like JSONL or CSV.
Evaluate Model Performance with Validation Sets and Evals
After fine-tuning, you need to know if your model is actually good. Forefront allows you to upload a validation set—a separate portion of your data that the model has not seen during training. You can run automated evaluations that compare the model’s outputs against expected answers. This helps you catch overfitting or underperformance before deployment.
Deploy Models via Serverless API Endpoints
Once you are satisfied with your fine-tuned model, you can deploy it with a single click. Forefront creates a serverless API endpoint that scales automatically. You do not need to manage servers or GPUs. The endpoint is accessible via standard HTTP requests, and you can integrate it into your applications, websites, or workflows.
Use Playground for Experimentation
The Playground is an interactive chat interface where you can test any model—both base models and your fine-tuned ones—before deploying. You can adjust parameters like temperature, top-p, and max tokens in real-time. This is ideal for prototyping and understanding how your model behaves.
Built-in Loss Charts to Monitor Training
During fine-tuning, Forefront displays real-time loss charts. Loss is a metric that measures how well the model is learning. A decreasing loss curve indicates that training is progressing well. If the loss plateaus or increases, you can stop training early, adjust your data, or change hyperparameters. This transparency is invaluable for debugging.
How to Use Forefront AI: Step-by-Step Guide
Step 1: Prepare Your Dataset
Your data is the most important part of fine-tuning. Forefront expects data in a structured format. The most common format is JSONL (JSON Lines), where each line is a JSON object representing a conversation or a prompt-completion pair. For example, for a chat model, your data might look like this:
{"messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": "The capital of France is Paris."}]}
You can also use a simpler format for text completion tasks: {"prompt": "Translate to French: Hello", "completion": "Bonjour"}. Make sure your dataset is clean, consistent, and representative of the tasks you want the model to perform. Split your data into a training set (usually 80-90%) and a validation set (10-20%). Upload both to Forefront via the “Datasets” section. Click “Upload Dataset,” name it, and select the file.
Step 2: Choose a Base Model
Go to the “Models” section and click “Create Model.” You will see a list of available open-source base models. For beginners, we recommend starting with a smaller model like Mistral 7B or Llama 3 8B. These are powerful yet efficient, and fine-tuning them requires fewer credits. Larger models like Llama 3 70B offer higher quality but are more expensive and slower to train. Select your base model and give your fine-tuned model a name.
Step 3: Configure Fine-Tuning
After selecting the base model, you will be taken to the fine-tuning configuration page. Here you will:
- Select your training dataset from the dropdown menu (the one you uploaded in Step 1).
- Select your validation dataset (optional but recommended).
- Set hyperparameters: Learning rate, number of epochs, batch size, and warmup steps. Forefront provides sensible defaults for most models. For beginners, leave these as they are. Advanced users can tweak them for better performance.
- Enable loss charts: This is on by default. You will see a live chart during training.
Click “Start Training.” A confirmation dialog will show the estimated credit cost. Confirm to begin.
Step 4: Monitor Training
While training runs, you can watch the loss chart update in real-time. The training page shows the current epoch, step, and loss values. If the validation loss starts increasing while training loss is still decreasing, the model is overfitting. You can stop the training manually and try again with a lower learning rate or more data. Once training completes, Forefront will notify you.
Step 5: Evaluate Your Model
After training, go to the “Models” section and click on your new fine-tuned model. You will see an “Evaluate” tab. Upload a validation set if you haven’t already, or use the built-in evaluation tools. Forefront can run automated tests, such as comparing model outputs to expected answers. You can also manually test the model using the Playground. Type a few prompts related to your use case to see if the responses are accurate and coherent.
Step 6: Deploy via Serverless API
When you are satisfied with the evaluation, click the “Deploy” button. You will be asked to choose a deployment name and region (e.g., US or EU). Forefront will provision a serverless endpoint. This usually takes a few minutes. Once deployed, you will receive an API endpoint URL and an API key. You can now make HTTP requests to this endpoint from your application. Here is a simple example using Python:
import requests
url = "https://api.forefront.ai/v1/your-deployment-name/completions"
headers = {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"}
data = {"prompt": "What is the capital of France?", "max_tokens": 50}
response = requests.post(url, headers=headers, json=data)
print(response.json())
You can also use the Playground to test the deployed model by selecting it from the model list.
Step 7: Iterate and Improve
Fine-tuning is rarely perfect on the first try. Use the insights from evaluations and loss charts to improve your dataset. Add more examples, fix errors, or balance the distribution of topics. You can create a new version of your model by fine-tuning again with the improved data. Forefront keeps all your model versions, so you can compare them.
Tips for Success
Start Small and Scale Gradually
If you are new to fine-tuning, begin with a small dataset (e.g., 100-500 examples) and a small base model. This will help you understand the workflow without spending many credits. Once you are comfortable, scale up to larger datasets and models. Always validate your model before deploying.
Clean Your Data Thoroughly
The quality of your fine-tuned model is directly tied to the quality of your data. Remove duplicates, fix typos, and ensure consistency in formatting. If your data contains contradictory instructions, the model will learn to be confused. Use the validation set to catch these issues early.
Monitor Loss Charts Carefully
The loss chart is your best friend during training. A smooth, decreasing curve is ideal. If you see sudden spikes, it could be due to a bad batch of data. If the loss is flat, your learning rate might be too low. If it oscillates wildly, the learning rate might be too high. Do not be afraid to stop training and adjust parameters.
Use the Playground for Quick Tests
Before deploying, spend time in the Playground testing edge cases. Try prompts that are similar to your training data, but also try unexpected inputs. This will reveal how robust your model is. Adjust parameters like temperature (lower for factual answers, higher for creativity) to find the best setting for your use case.
Leverage Serverless Deployment for Cost Efficiency
Serverless endpoints only charge you when they are used. If your application has low traffic, this is very cost-effective. For high-traffic applications, consider contacting Forefront for dedicated deployment options. Also, monitor your API usage to avoid unexpected charges.
Keep Your API Keys Secure
Treat your API keys like passwords. Never hardcode them in client-side code or public repositories. Use environment variables or a secrets manager. Forefront allows you to generate and revoke keys from the dashboard.
Join the Community and Read Documentation
Forefront has an active community and detailed documentation. If you run into issues, check the official docs first. You can also find example datasets and model configurations shared by other users. Learning from others’ experiences can save you a lot of time.
Forefront AI puts the power of custom AI models in your hands. By following this tutorial, you can go from zero to a deployed, fine-tuned model that works on your private data. The combination of open-source flexibility, transparent training, and serverless deployment makes it a practical choice for both prototyping and production. Start with a small experiment today, and you will quickly see how transformative custom AI can be for your projects.