Entity Fields Reference#
Review the following key fields for major entities in the NeMo Microservices Platform when using the NeMo Entity Store and NeMo Data Store microservice APIs.
Tip
For more information about APIs, see the API Reference.
Namespace Fields#
Namespaces are the top-level organizational unit for all other entities.
Field |
Type |
Required |
Description |
---|---|---|---|
|
string |
Yes |
Unique identifier for the namespace |
|
string |
No |
Description of the namespace’s purpose |
|
object |
No |
User-defined metadata key-value pairs |
|
string |
No |
ID of the user who created the namespace |
|
object |
No |
Access control policies for the namespace |
Example Namespace Object in JSON Format
{
"id": "research-team",
"description": "Research team workspace for LLM experiments",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"custom_fields": {
"department": "AI Research",
"cost_center": "CC-123"
},
"ownership": {
"created_by": "user-123",
"access_policies": {
"admins": ["team-leads"],
"readers": ["all-researchers"]
}
}
}
Model Fields#
Models represent machine learning models that can be used for inference.
Field |
Type |
Required |
Description |
---|---|---|---|
|
string |
No |
Unique name within the namespace |
|
string |
No |
Namespace the model belongs to (defaults to “default”) |
|
string |
No |
Description of the model |
|
integer |
Yes |
Number of model parameters |
|
integer |
Yes |
Maximum context size |
|
integer |
Yes |
Number of virtual tokens |
|
boolean |
Yes |
Whether this is a chat model |
|
string/object |
No |
Reference to another model used as base |
|
enum |
No |
Model precision (int8, bf16, fp16, fp32, bf16-mixed) |
|
string |
No |
Associated project ID |
|
object |
No |
User-defined metadata key-value pairs |
Example Model Configuration in JSON Format
{
"name": "llama-7b-chat",
"namespace": "research-team",
"description": "Fine-tuned LLaMA 7B chat model",
"spec": {
"num_parameters": 7000000000,
"context_size": 4096,
"num_virtual_tokens": 32000,
"is_chat": true
},
"base_model": "meta-llama/Llama-2-7b",
"precision": "bf16-mixed",
"project": "chat-assistant",
"custom_fields": {
"training_epochs": 3,
"evaluation_score": 0.85
}
}
Model Precision Options#
int8
: 8-bit integer precisionbf16
: Brain floating-point formatfp16
: 16-bit floating-pointfp32
: 32-bit floating-pointbf16-mixed
: Mixed precision with Brain floating-point
Dataset Fields#
Datasets represent data used for fine-tuning or evaluation.
Field |
Type |
Required |
Description |
---|---|---|---|
|
string |
No |
Unique name within the namespace |
|
string |
No |
Namespace the dataset belongs to (defaults to “default”) |
|
string |
No |
Description of the dataset |
|
string |
Yes |
Location of dataset files (URL) |
|
string |
No |
Dataset format (e.g., SQuAD, BEIR) |
|
string |
No |
Associated project ID |
|
object |
No |
User-defined metadata key-value pairs |
Example Dataset Configuration in JSON Format
{
"name": "customer-support-data",
"namespace": "research-team",
"description": "Cleaned customer support conversations",
"files_url": "s3://company-datasets/support-data/",
"format": "jsonl",
"project": "chat-assistant",
"custom_fields": {
"num_examples": 50000,
"data_source": "Support Tickets Q1 2024",
"preprocessing_version": "v2.1"
}
}
Dataset URL Support#
The files_url
field supports various storage locations:
NeMo Data Store
Hugging Face
S3
Project Fields#
Projects help organize related entities together.
Field |
Type |
Required |
Description |
---|---|---|---|
|
string |
No |
Unique name within the namespace |
|
string |
No |
Namespace the project belongs to (defaults to “default”) |
|
string |
No |
Description of the project |
|
object |
No |
User-defined metadata key-value pairs |
Example Project Configuration in JSON Format
{
"name": "chat-assistant",
"namespace": "research-team",
"description": "Customer support chat assistant development",
"custom_fields": {
"team_lead": "alice.smith",
"target_completion": "2024-Q2",
"priority": "high"
}
}
Common Fields#
These fields are shared across most entities:
Field |
Type |
Description |
---|---|---|
|
datetime |
When the entity was created |
|
datetime |
When the entity was last updated |
|
string |
ID of the user who created the entity |
|
object |
Access control policies |
|
object |
User-defined metadata key-value pairs |