File size: 2,949 Bytes
deb3471
 
 
 
 
 
 
05e2837
deb3471
 
 
 
 
5d99e77
 
deb3471
 
 
 
 
 
 
 
 
 
 
5d99e77
deb3471
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
05e2837
deb3471
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Model Configuration Explorer</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="{{ base_url }}static/css/styles.css">
</head>
<body>
    <div class="container">
        <!-- Component 1: Search Section -->
        <section class="search-section">
            <h1>Neuron Compiled Model Cache</h1>
            <p>The Neuron Model Cache is hosted on the Hugging Face Hub and includes compiled files for all popular and supported optimum-neuron pre-trained models. Enter a model ID below to check if a compiled version exists for this architecture.</p>
            <div class="search-box">
                <input type="text" id="modelIdSearch" placeholder="Enter Model ID (e.g., MODEL123)">
                <button id="searchButton"><i class="fas fa-search"></i> Search</button>
            </div>
        </section>

        <!-- Component 2: Model Grid -->
        <section class="model-grid-section">
            <div class="section-header">
                <h2><i class="fas fa-list"></i> Available Models</h2>
            </div>
            <p class="section-subtitle" style="margin-bottom: 20px;">Click on any model to view the existing configurations for which a compiled version exists.</p>
            
            <div id="modelGrid" class="model-grid">
                <!-- Models will be populated here -->
            </div>
            
            <div id="loadingModels" class="spinner"></div>
            
            <div class="pagination">
                <button id="prevPage" disabled><i class="fas fa-chevron-left"></i> Previous</button>
                <span id="pageInfo">Page 1 of 1</span>
                <button id="nextPage" disabled>Next <i class="fas fa-chevron-right"></i></button>
            </div>
        </section>

        <!-- Component 3: Configuration Details -->
        <section id="configSection" class="config-section">
            <div class="config-header">
                <h3 id="configModelTitle">Configurations for <span id="selectedModelId"></span></h3>
                <button id="closeConfig" class="close-btn"><i class="fas fa-times"></i></button>
            </div>
            
            <div id="configList" class="config-list">
                <!-- Configurations will be populated here -->
            </div>
            
            <div id="loadingConfig" class="spinner"></div>
            
            <div id="noConfig" class="empty-state">
                <i class="far fa-folder-open"></i>
                <h4>No configurations found</h4>
                <p>This model has no saved configurations yet.</p>
            </div>
        </section>
    </div>

    <script src="{{ base_url }}static/js/main.js"></script>
</body>
</html>